Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="renderMaterial"></param>
 public OpenGL3GeometryBuffer(OpenGL3Renderer owner, RenderMaterial renderMaterial) :
     base(owner, renderMaterial)
 {
     d_glStateChanger = owner.GetOpenGLStateChanger();
     d_bufferSize     = 0;
     InitialiseVertexBuffers();
 }
        public OpenGL3FBOTextureTarget(OpenGL3Renderer owner, bool addStencilBuffer)
            : base(owner, addStencilBuffer)
        {
            // no need to initialise d_previousFrameBuffer here, it will be
            // initialised in activate()

            InitialiseRenderTexture();

            // setup area and cause the initial texture to be generated.
            DeclareRenderSize(new Sizef(DEFAULT_SIZE, DEFAULT_SIZE));
        }
Esempio n. 3
0
 /// <summary>
 /// Destroy an OpenGL3Renderer object.
 /// </summary>
 /// <param name="renderer">
 /// The OpenGL3Renderer object to be destroyed.
 /// </param>
 public static void Destroy(OpenGL3Renderer renderer)
 {
     renderer.Dispose();
 }