예제 #1
0
 public ImGuiRendererMesh(ShaderResourcesAsset resources, TextureManager texManager)
 {
     _shader     = resources.shaders.mesh;
     _texManager = texManager;
     _texID      = Shader.PropertyToID(resources.propertyNames.tex);
 }
예제 #2
0
        public static IImGuiRenderer Create(RenderType type, ShaderResourcesAsset shaders, TextureManager textures)
        {
            Assert.IsNotNull(shaders, "Shaders not assigned.");
            switch (type)
            {
            case RenderType.Mesh:       return(new ImGuiRendererMesh(shaders, textures));

            case RenderType.Procedural: return(new ImGuiRendererProcedural(shaders, textures));

            default:                    return(null);
            }
        }