Esempio n. 1
0
            public Program(CSGL gl,string VSFileName,string FSFileName)
                : base(gl)
            {
                StreamReader SR;

                SR	= new StreamReader(VSFileName);
                VShader	= new CSGL.VertexShader(gl,SR.ReadToEnd());
                SR.Close();

                SR	= new StreamReader(FSFileName);
                FShader	= new CSGL.FragmentShader(gl,SR.ReadToEnd());
                SR.Close();

                Initial();
            }
Esempio n. 2
0
 public VertexShader(CSGL gl,string Source)
     : base(gl,VERTEX_SHADER,Source)
 {
 }
Esempio n. 3
0
 public FragmentShader(CSGL gl,string Source)
     : base(gl,FRAGMENT_SHADER,Source)
 {
 }
Esempio n. 4
0
            public Program(CSGL gl,VertexShader VS,FragmentShader FS)
                : base(gl)
            {
                VShader	= VS;
                FShader	= FS;

                Initial();
            }
Esempio n. 5
0
            internal Shader(CSGL gl,uint SType,string Source)
                : base(gl)
            {
                T	= SType;
                Src	= Source;

                Initial();
            }
Esempio n. 6
0
 public VertexBuffer(CSGL gl,uint SizePerVertex,double[] BData,Usage U)
     : base(gl,ArrayBuffer.Data,BData,U)
 {
     Size	= (int)SizePerVertex;
     Count	= BData.Length / Size;
 }
Esempio n. 7
0
 public GLObject(CSGL Control)
 {
     Ctrl	= Control;
 }
Esempio n. 8
0
 public TexCoordBuffer(CSGL gl,uint SizePerVertex,double[] BData,Usage U)
     : base(gl,ArrayBuffer.Data,BData,U)
 {
     Size	= (int)SizePerVertex;
 }
Esempio n. 9
0
 public VertexAttribBuffer(CSGL gl,uint SizePerVertex,double[] BData,Usage U)
     : base(gl,ArrayBuffer.Data,BData,U)
 {
     S	= (int)SizePerVertex;
 }
Esempio n. 10
0
 public NormalBuffer(CSGL gl,double[] BData,Usage U)
     : base(gl,ArrayBuffer.Data,BData,U)
 {
 }
Esempio n. 11
0
 public IndexBuffer(CSGL gl,uint[] BData,Usage U)
     : base(gl,ArrayBuffer.Element,BData,U)
 {
     Count	= BData.Length;
 }
Esempio n. 12
0
            protected BaseBuffer(CSGL gl,ArrayBuffer BufferType,double[] BufferData,Usage Use)
                : base(gl)
            {
                U	= Use;
                Data	= BufferData;
                BType	= BufferType;
                T	= DataType.Double;

                Initial();
            }
Esempio n. 13
0
            protected BaseBuffer(CSGL gl,ArrayBuffer BufferType,float[] BufferData,Usage Use)
                : base(gl)
            {
                U	= Use;
                Data	= BufferData;
                BType	= BufferType;
                T	= DataType.Float;

                Initial();
            }
Esempio n. 14
0
 public Texture(CSGL gl,string ImageFileName)
     : base(gl)
 {
     FileName	= ImageFileName;
     Initial();
 }