Esempio n. 1
0
        public GLRenderer()
        {
            programs = new Dictionary <String, GLShaderProgram>();
            shaders  = new Dictionary <String, GLShader>();

            billboard   = new GLBillboard();
            staticModel = new GLStaticModel();

            riggedModel    = new GLRiggedModel();
            boneTransforms = new Matrix4[MAX_BONE_TRANSFORMS];

            textures = new Dictionary <String, GLTexture>();

            isSkinning = false;

            Reset();
        }
Esempio n. 2
0
        private bool CreateBillboard(String name, List <float> vertexData,
                                     List <float> texData, List <uint> indexData, Logger logger)
        {
            bool result = true;

            logger.Event("Creating billboard: " + name);

            billboard = new GLBillboard();
            result    = billboard.Create(vertexData, texData, indexData);

            if (result == false)
            {
                logger.Error("Failed to create billboard: " + name);
                billboard.Destory();
            }

            return(result);
        }