예제 #1
0
 public TexturedGraphicModule(string programID)
 {
     _programID = programID;
     Program    = MainGraphic.GetProgramById(_programID);
     Program.DisposeChildren = true;
     Data = new ShaderData();
 }
예제 #2
0
 public GraphicModule(string programID, int shaderSize, Color shaderColor)
 {
     _programID              = programID;
     _shaderSize             = shaderSize;
     _shaderColor            = shaderColor;
     Program                 = MainGraphic.GetProgramById(_programID);
     Program.DisposeChildren = true;
     Data = new ShaderData(shaderColor);
 }