コード例 #1
0
        public GraphicsInterface(GLContext GI)
        {
            fGlu = new Glu(this);
            fGI = GI;
            fExtensions = new GLExtensions(this);

            LoadExtensions();

            fState = new GLState(this);

            fServerFeatureList = new GLFeatureList(this);
            fClientFeatureList = new GLClientFeatureList(this);
            fBufferList = new GLFrameBuffer(this);
            fDrawingList = new GLPrimitiveDrawing(this);
        }
コード例 #2
0
        public GLFeatureLighting(GraphicsInterface gi)
            :base(gi, GLOption.Lighting)
        {
            fState = new GLState(gi);

            fModel = new GLLightModel(gi);

            fAmbientLight = new AmbientLight(gi, ColorRGBA.White);

            fLight0 = new GLLight(gi, GLLightName.Light0);
            fLight1 = new GLLight(gi, GLLightName.Light1);
            fLight2 = new GLLight(gi, GLLightName.Light2);
            fLight3 = new GLLight(gi, GLLightName.Light3);
            fLight4 = new GLLight(gi, GLLightName.Light4);
            fLight5 = new GLLight(gi, GLLightName.Light5);
            fLight6 = new GLLight(gi, GLLightName.Light6);
            fLight7 = new GLLight(gi, GLLightName.Light7);
        }
コード例 #3
0
 public GLTextureEnvironment(GraphicsInterface gi)
 {
     fState = gi.State;
 }