OglRenderContext Class

OpenGL render context class.
Public Class OglRenderContext 
Inherits RenderContextBase
This language is not supported or no code example is available.
public class OglRenderContext : RenderContextBase
This language is not supported or no code example is available.
Name Description
Public property ActiveLights Currently active lights. (inherited from RenderContextBase).
Public property ColorMaterialMode Gets or sets the color material mode.
Public property CurrentBackMaterial Gets or sets the current material for the back faces. (inherited from RenderContextBase).
Public property CurrentBlendState Gets the current blend state. (inherited from RenderContextBase).
Public property CurrentColorMask The current color mask that determines the color components written in the render buffer. (inherited from RenderContextBase).
Public property CurrentDepthStencilState Gets the current depth stencil state. (inherited from RenderContextBase).
Public property CurrentEnvironmentMap Gets the environment texture. (inherited from RenderContextBase).
Public property CurrentLineWidth Gets the current line width (in pixels). (inherited from RenderContextBase).
Public property CurrentMaterial Gets or sets the current material. (inherited from RenderContextBase).
Public property CurrentPointSize Gets the current point size (in pixels). (inherited from RenderContextBase).
Public property CurrentRasterizerState Gets the current rasterizer state. (inherited from RenderContextBase).
Public property CurrentShader Gets the current shader. (inherited from RenderContextBase).
Public property CurrentShaderTechnique (inherited from RenderContextBase).
Public property CurrentWireColor Gets or sets the current color for wireframe entities. (inherited from RenderContextBase).
Public property EnvironmentSupported Gets a values indicating whether the Environment is supported. (inherited from RenderContextBase).
Public property FrontFaceCW Gets or sets a value telling if the current front faces are oriented clockwise. (inherited from RenderContextBase).
Public property Static GraphicalIssues Gets a list of graphical issues on the machine's adapter. (inherited from RenderContextBase).
Public property GraphicsDataWithError Gets or sets the EntityGraphicsData that caused error during the drawing. (inherited from RenderContextBase).
Public property Static IdentityMatrix Gets the Identity matrix as a float array. (inherited from RenderContextBase).
Public property Static IdentityMatrixDouble Gets the Identity matrix as a double array. (inherited from RenderContextBase).
Public property IsDirect3D Tells if the graphics system is using the Direct3D renderer. (inherited from RenderContextBase).
Public property IsDrawingForDepth Tells if the scene is being drawn for depth. (inherited from RenderContextBase).
Public property MultitexturingSupported Gets a values indicating whether the multitexturing is supported. (inherited from RenderContextBase).
Public property NumberOfSplits Gets the number of splits used in the parallel split shadowmapping algorithm. (inherited from RenderContextBase).
Public property OpenglExtensions Gets a space-separated list of supported extensions to OpenGL.
Public property OpenglVendor Gets the company responsible for this GL implementation. This name does not change from release to release.
Public property ReflectionsSupported Tells if the planar reflections are supported by the graphics system. (inherited from RenderContextBase).
Public property RendererName Gets the name of the renderer. This name is typically specific to a particular configuration of a hardware platform. It does not change from release to release.
Public property RendererVersion Gets Graphics API version.
Public property ShadersSupported
Public property ShadingLanguageVersion Gets OpenGL Shading Language version.
Public property SupportShadows Tells if the rendering context supports the dynamic shadows.
Public property TextureNonPowerOfTwo Tells if the render context supports non power of two textures.
Public property VendorName (inherited from RenderContextBase).
Internal protected (Protected Friend) property gl Gets the instance to the OpenGL class.
Top
Methods
 
Name Description
Public method BeginCaptureZBufferOnce() Avoids multiple reading of the whole ZBuffer texture in Direct3D when reading different pick box sizes. (inherited from RenderContextBase).
Public method BeginDraw() (inherited from RenderContextBase).
Public method BeginDrawForDepth() (inherited from RenderContextBase).
Public method BeginDrawForSelection()
Public method BeginDrawMulticolorWithAmbientAndDiffuse(ShaderParameters) (inherited from RenderContextBase).
Public method BeginReadDepthValues(Size, out int) Initializes a depth read operation.
Public method CheckErrorDEBUG(string)
Public method CheckOutOfMemory() Tells if the graphics system is in out of memory state.
Public method CheckShadersAndLights(Dictionary<shaderTypeIShaderTechnique>, realisticShadowQualityType, BackgroundSettings)
Public method CheckTexture(TextureBase) (inherited from RenderContextBase).
Public method CleanUpShaders(ref Dictionary<shaderTypeIShaderTechnique>) (inherited from RenderContextBase).
Public method ClearColor(Color)
Public method ClearDepthStencil(bool, bool, byte)
Public method ClearDynamicBuffers() Clears the dynamic buffers allocated to draw the entities (Direct3D only). (inherited from RenderContextBase).
Public method ClearShadowMaps() (inherited from RenderContextBase).
Public method CloseEnvironment() Disables the current environment. (inherited from RenderContextBase).
Public method CloseTexture(textureUnitType, bool) Disables the texture. (inherited from RenderContextBase).
Public method CloseTexture(TextureBase, bool) Disables the texture. (inherited from RenderContextBase).
Public method CloseTexture(bool) Disables the current texture. (inherited from RenderContextBase).
Internal protected (Protected Friend) method CloseTextureInternal(textureUnitType, bool)
Protected method ColorChanged(Color, Color) (inherited from RenderContextBase).
Public method Compile(EntityGraphicsData, DrawEntityCallBack, object) (inherited from RenderContextBase).
Public method CompileBackground(BackgroundSettings, int) Compiles the background, used by the designer. (inherited from RenderContextBase).
Public method CompileEnvironment(Image) (inherited from RenderContextBase).
Public method CompileEnvironment(ImageSource) (inherited from RenderContextBase).
Protected method CompileInternal(EntityGraphicsData, DrawEntityCallBack, object)
Public method CompileVBO(EntityGraphicsData, DrawEntityCallBack, object, bool) Compiles the Entity using Vertex Buffer Objects if possible.
Public method ComputePickMatrix(RectangleF, Size, int[]) Computes the matrix to restrict the rendering to the given rectangle. (inherited from RenderContextBase).
Public method ComputeShaderShadowPasses(out int, out int[]) Computes the number of passes needed by the shaders (one per light with shadow). (inherited from RenderContextBase).
Public method Create()
Internal protected (Protected Friend) method CreateEnvironment(Image)
Public method CreateReflectionShaders(realisticShadowQualityType, orientationType, BackgroundSettings, LightSettings[])
Public method CreateShaders(realisticShadowQualityType, LightSettings[])
Public method CreateShadowMap(int, bool, GfxShadowParams, ClippingPlaneBase[], LightSettings[], DrawForShadowMapDelegate, object) (inherited from RenderContextBase).
Public method CreateTexture1D(Color[], textureFilteringFunctionType, textureFilteringFunctionType, bool, bool) Creates a 1D texture from the given color table.
Public method CreateTexture2D() Creates a texture 2D with or without multisampling dependiing on the rendering context.
Public method CreateTexture2D(Image, textureFilteringFunctionType, textureFilteringFunctionType, bool, bool, bool, bool) Creates a 2D texture from an image.
Public method CreateTexture2D(Size, bool, textureFilteringFunctionType, textureFilteringFunctionType) Creates a 2D Texture for rendering.
Public method CreateTexture2DNoMultisample(Size, bool) Creates a 2D texture without multisampling. (inherited from RenderContextBase).
Public method CurrentModelViewMatrix() Gets the current modelview matrix. (inherited from RenderContextBase).
Public method CurrentProjectionMatrix() Gets the current projection matrix. (inherited from RenderContextBase).
Public method Static DelTexture(ref UInt32) Deletes a texture and reset the name to zero.
Public method DeleteVBO(int[])
Public method DeviceContext() (inherited from RenderContextBase).
Public method DisableClipPlanes()
Public method DisableShader() (inherited from RenderContextBase).
Public method DisableShadowMap() Disables the Shadowmap. (inherited from RenderContextBase).
Public method Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method Draw(EntityGraphicsData, primitiveType) Draws an entity.
Public method DrawBorder(Dictionary<shaderTypeIShaderTechnique>, Color, Size, int, bool, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap)
Public method DrawBufferedLine(Point3D, Point3D) Draws a line using a buffered approach. (inherited from RenderContextBase).
Public method DrawBufferedPoint(Point3D) Draws a point using a buffered approach. (inherited from RenderContextBase).
Public method DrawColorPlainTriangles(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>)
Public method DrawColorSmoothTriangles(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>)
Public method DrawCurrentBuffer() Ends the drawing of buffered entities, sending data to the graphics card.
Public method DrawCurvatureMapInvTriangles(IList<IndexTriangle>, IList<Point3D>, Color[])
Public method DrawCurvatureMapTriangles(IList<IndexTriangle>, IList<Point3D>, Color[])
Public method DrawIndeterminateAsLineList(EntityGraphicsData) Draws an EntityGraphicsData as a Line list.
Public method DrawIndeterminateAsLineStrip(EntityGraphicsData) Draws an EntityGraphicsData as a Lines strip.
Public method DrawIndeterminateAsPoints(EntityGraphicsData) Draws an EntityGraphicsData as a Points list.
Public method DrawIndexLines(IList<IndexLine>, Point3D[])
Public method DrawIndexLinesWithDisplacement(IList<IndexLine>, Point3D[], double, bool) Draws indexed lines with PointWithDisplacement vertices.
Public method DrawIndexedTriangles(VBOParams)
Public method DrawLine(Point2D, Point2D)
Public method DrawLine(Point3D, Point3D)
Public method DrawLine(Point3D, Point3D, Point2D) Draws a line with textured vertices.
Public method DrawLine(PointRGB, PointRGB)
Public method DrawLine(float, float, float, float, float, float)
Public method DrawLine(float[])
Public method DrawLineLoop(Point3D[], int, int) Draws a line loop.
Public method DrawLineStrip(Point2D[], int, int) Draws a line strip of Point2D .
Public method DrawLineStrip(Point3D[], float[], int, int) Draws a line strip of Point3D with textured vertices.
Public method DrawLineStrip(Point3D[], int, int) Draws a line strip of Point3D .
Public method DrawLineStrip(PointRGB[], int, int) Draws a line strip of PointRGB .
Public method DrawLineStrip(float[], int, int) Draws a line strip of vertices.
Public method DrawLineStripRGBA(float[], int, int) Draws a line strip of colored vertices.
Public method DrawLines(Point3D[], Color[], float[], int, int) Draws lines with colored vertices specifying a different lineWidth per line.
Public method DrawLines(Point3D[], Color[], int, int) Draws lines with colored vertices.
Public method DrawLines(Point3D[], float[], int, int) Draws lines with textured vertices.
Public method DrawLines(Point3D[], int, int) Draws a set of lines.
Public method DrawLines(float[], int, int) Draws a set of lines.
Public method DrawLines2D(float[])
Public method DrawLinesAndPoints(Point3D[], Point3D[]) (inherited from RenderContextBase).
Public method DrawLinesAndPointsOnTheFly(Point3D[], Point3D[]) Draws the specified lines and points on the fly. (inherited from RenderContextBase).
Public method DrawLinesOnTheFly(Point3D[]) Draws the specified lines on the fly. (inherited from RenderContextBase).
Public method DrawLinesWithDisplacement(Point3D[], double, bool) Draws lines with PointWithDisplacement vertices.
Public method DrawMulticolorPlainTriangles(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>, byte)
Public method DrawMulticolorSmoothTriangles(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>, byte)
Public method DrawNormals(Point3D[], IndexTriangle[], Vector3D[], double)
Public method DrawNormals(Point3D[], Vector3D)
Public method DrawNormalsPerVertex(Point3D[], IndexTriangle[], Vector3D[], double)
Public method DrawOnTextureOrBitmap(TextureBase, TextureBase, BitmapData, int, bool, bool, int, int, int, drawSceneFuncDelegate, object, bool, int, bool) Draws the scene on the specified texture or bitmapData.
Public method DrawPixels(TextureBase, Bitmap, Point2D, Size, bool)
Public method DrawPlainTriangles(IList<IndexTriangle>, IList<Point3D>)
Public method DrawPlainTriangles(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>)
Public method DrawPlainTrianglesNoColors(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>)
Public method DrawPoints(Point3D[], int, int) Draws a set of points.
Public method DrawPoints(float[], int, int) Draws a set of points.
Public method DrawPointsIndeterminate(Point3D[], int, int) Draws a set of points without specifying the kind of geometry.
Public method DrawPointsIndeterminate(float[], int, int) Draws a set of points without specifying the kind of geometry.
Public method DrawPointsOnTheFly(Point3D[]) Draws the specified points on the fly. (inherited from RenderContextBase).
Public method DrawPointsRGB(Point3D[], int, int) Draws a set of PointRGB.
Public method DrawPointsRGBIndeterminate(Point3D[], int, int) Draws a set of PointRGB without specifying the kind of geometry.
Public method DrawPointsWithColorIntensitiesIndeterminate(float[], byte[], int, int) Draws a set of points with the specified color intensities, without specifying the kind of geometry.
Public method DrawPointsWithColorsRGBAIndeterminate(float[], byte[], int, int) Draws a set of points with the specified color intensities, without specifying the kind of geometry.
Public method DrawPointsWithColorsRGBIndeterminate(float[], byte[], int, int) Draws a set of points with the specified colors, without specifying the kind of geometry.
Public method DrawPointsWithNormals(Point3D[], Vector3D[], int, int) Draws a set of Point3D specifying a normal per vertex.
Public method DrawPointsWithNormalsIndeterminate(Point3D[], Vector3D[], int, int) Draws a set of Point3D specifying a normal per vertex without specifying the kind of geometry.
Public method DrawPointsWithNormalsIndeterminate(float[], float[], int, int) Draws a set of points without specifying the kind of geometry.
Public method DrawQuad(RectangleF, float)
Public method DrawQuad(RectangleF)
Public method DrawQuadStrip(Point3D[], Vector3D[], int, int)
Protected method DrawQuadWithColorRange(RectangleF, Color, Color)
Public method DrawQuadWithTextures(TextureBase, float[], byte, RectangleF, float, bool) Draws a Quad with a texture.
Public method DrawQuads(Point3D[], Vector3D[], int, int)
Public method DrawQuads2D(float[])
Public method DrawQuadsOutlines(Point3D[])
Public method DrawRichPlainQuads(Point3D[], Vector3D[], PointF[])
Public method DrawRichPlainTriangles(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>, IList<PointF>)
Public method DrawRichSmoothInvTriangles(IList<IndexTriangle>, IList<Point3D>, float, float, float, float)
Public method DrawRichSmoothTriangles(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>, IList<PointF>)
Public method DrawRichSmoothTriangles(IList<IndexTriangle>, IList<Point3D>, float, float, float, float)
Public method DrawSelected(EntityGraphicsData, primitiveType) Draws a selected entity.
Public method DrawSilhouettes(GfxSilhoData)
Public method DrawSmoothTriangles(IList<IndexTriangle>, IList<Point3D>, IList<Vector3D>)
Public method DrawSurfaceInvTriangles(IList<IndexTriangle>, IList<Point3D>)
Public method DrawSurfaceNormals(Point3D[], double)
Public method DrawSurfaceTriangles(IList<IndexTriangle>, IList<Point3D>)
Public method DrawTextureOnScreen(Rectangle, TextureBase, TextureBase) Draws a texture on screen. (inherited from RenderContextBase).
Public method DrawTriangles(Point3D[]) Draws triangles without normals.
Public method DrawTriangles(Point3D[], Vector3D) Draws triangles with one normal.
Public method DrawTriangles(Point3D[], Vector3D[], Color[], bool) Draws triangles with one normal and color per vertex per vertex and 1D texture coordinates.
Public method DrawTriangles(Point3D[], Vector3D[], IndexTriangle[], PointF[])
Public method DrawTriangles(Point3D[], Vector3D[], PointF[], bool) Draws triangles with one normal per vertex and (optional) texture coordinates.
Public method DrawTriangles(Point3D[], Vector3D[], float[], bool) Draws triangles with one normal per vertex and 1D texture coordinates.
Public method DrawTriangles2D(Point2D[])
Public method DrawTriangles2D(float[])
Public method DrawTrianglesFan(Point3D[], Vector3D)
Public method DrawTrianglesFan2D(float[])
Public method DrawTrianglesPartial(Point3D[], Vector3D[], Color[]) Draws triangles with one normal and color per vertex, as part of a drawing loop (no Begin-End is done).
Public method DrawTrianglesPartial(Point3D[], Vector3D[], PointF[]) Draws triangles with one normal per vertex, as part of a drawing loop (no Begin-End is done).
Public method DrawTrianglesPartial(Point3D[], Vector3D[], float[]) Draws triangles with one normal per vertex and 1D texture coordinates, as part of a drawing loop (no Begin-End is done).
Public method DrawTrianglesPartialWithMaterialColor(Point3D[], Vector3D[], bool) Draws triangles with one normal per vertex, as part of a drawing loop (no Begin-End is done), using the current material color. (inherited from RenderContextBase).
Public method DrawTrianglesPartialWithTexture(Point3D[], Vector3D[], PointF[], bool) Draws triangles with one normal and one texture coordinate per vertex, as part of a drawing loop (no Begin-End is done), using the current texture. (inherited from RenderContextBase).
Public method DrawTrianglesPlanar(Point3D[], IndexTriangle[], Vector3D) Draws triangles with a single normal.
Public method DrawTrianglesPlanar(Point3D[], int[], Vector3D) Draws triangles with a single normal.
Public method DrawTrianglesWithDisplacement(PointWithDisplacement[], Vector3D[], Color, double, bool) Draws triangles with PointWithDisplacement vertices.
Public method DrawTrianglesWithDisplacement(PointWithDisplacement[], Vector3D[], Color[], double, bool) Draws triangles PointWithDisplacement vertices.
Public method DrawTrianglesWithDisplacement(PointWithDisplacement[], Vector3D[], double, bool) Draws triangles PointWithDisplacement vertices.
Public method DrawTrianglesWithDisplacement(PointWithDisplacement[], Vector3D[], float[], double, bool) Draws triangles PointWithDisplacement vertices.
Public method EnableAlphaClip(bool) Discards fragments with alpha < 0.1
Public method EnableLineStipple(bool) Enables or disables the line stipple.
Public method EnableMultisample(bool) Enables or disables the multisample (antialiasing)
Internal protected (Protected Friend) method EnableShader(shaderType, Dictionary<shaderTypeIShaderTechnique>)
Public method EnableShadowMap(int) (inherited from RenderContextBase).
Public method EnableShadowMapForSplitNoShaders(int) (inherited from RenderContextBase).
Public method EnableStencilCompare() (inherited from RenderContextBase).
Public method EnableThickLines() Enables thick lines rendering.
Public method EnableThickLinesInPolygonLineMode() Enables thick lines rendering when the RenderContextBase.CurrentRasterizerState state is polygon line.
Public method EnableThickPoints() Enables thick points rendering.
Public method EnableThickPointsInPolygonLineMode() Enables thick points rendering when the RenderContextBase.CurrentRasterizerState state is polygon line.
Public method EnableXOR(bool) Enables or disables the XOR (inverted color) drawing mode. (inherited from RenderContextBase).
Public method EnableXORForTexture(bool, ShaderParameters) Enables or disables the XOR (inverted color) drawing mode for the texture. (inherited from RenderContextBase).
Public method EndCaptureZBufferOnce() Stops the optimization activated by BeginCaptureZBufferOnce (inherited from RenderContextBase).
Public method EndDraw(bool)
Public method EndDrawBufferedLines() Draws the lines and points accumulated in the buffer (Direct3D only). (inherited from RenderContextBase).
Public method EndDrawForDepth() (inherited from RenderContextBase).
Public method EndDrawForSelection()
Public method EndDrawMulticolorWithAmbientAndDiffuse(ShaderParameters) (inherited from RenderContextBase).
Public method EndReadDepthValues() Ends a depth read operation.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Static FreeEntityGraphicsData(EntityGraphicsData) Obsolete.

Frees the allocated graphics card data and resets it to 0.

This method is obsolete. Call EntityGraphicsData.Dispose instead.

(inherited from RenderContextBase).
Public method GLBeginDrawTriangles() Begins an OpenGL triangle drawing sequence.
Public method GLEnd() Ends an OpenGL drawing sequence.
Public method Static GenListName(ref UInt32) Generates an OpenGL display list name after deleting it if necessary.
Public method Static GenTextureName(ref UInt32) Generates a texture name after deleting it if necessary.
Protected method GetBitmapFromData(Rectangle, byte[], int, int) (inherited from RenderContextBase).
Public method GetBitmapFromTexture(TextureBase)
Public method GetEntityIndicesFromBmp(Rectangle, bool, byte[], int, int) Gets the entity indices from a false-colors rgb image. (inherited from RenderContextBase).
Public method GetErrorString(int) Gets the graphics system error string.
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Protected method Static GetIndicesFromTriangles(IndexTriangle[]) (inherited from RenderContextBase).
Protected method GetMatrices(double[], matrixType, out double[], out double[], out double[]) (inherited from RenderContextBase).
Public method GetNumberOfShadowMapSplits(realisticShadowQualityType, LightSettings[]) Gets the number of splits used in the shadowmap computation. (inherited from RenderContextBase).
Public method GetPixel(int, int) Gets the color of the specified pixel in this viewport
Public method GetRGBForSelection(int, out byte, out byte, out byte) (inherited from RenderContextBase).
Public method GetShaderAndEnable(ShaderParameters) (inherited from RenderContextBase).
Public method GetShadowMapSplitDepth(int) (inherited from RenderContextBase).
Public method GetShadowMapSplitPosition(int) (inherited from RenderContextBase).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method HasDeviceContext() Tells if the device context has already been created. (inherited from RenderContextBase).
Public method HasFBO()
Public method HasMultiTexture() Tells if the render context supports multitexture.
Public method HasShadow() Tells if the render context supports shadow.
Public method HasStencil() Tells if the render context supports stencil.
Public method InitBlurShader() (inherited from RenderContextBase).
Public method InitShadowMapData(CameraBase, Transformation, int[]) (inherited from RenderContextBase).
Public method InitStandardShaders(realisticShadowQualityType, ref Dictionary<shaderTypeIShaderTechnique>, LightSettings[]) (inherited from RenderContextBase).
Public method InitTexturesForCapture() (inherited from RenderContextBase).
Protected method InitTexturesForCaptureInternal(int) (inherited from RenderContextBase).
Public method InitializeCurrentWireColor()
Public method InitializePreviousColors()
Public method InitializePreviousColorsHiddenLines(bool) (inherited from RenderContextBase).
Public method InitializeStates() Initializes the current states. (inherited from RenderContextBase).
Protected method IsCw(rasterizerStateType) Tells if the front face of the given state has clockwise front faces. (inherited from RenderContextBase).
Public method IsGraphicsError() Checks if there has been an error in the graphics library.
Public method IsMultisample() Tells if the graphics context is using MultiSample rasterization (either set by Viewport or by the Graphics Card settings).
Public method IsValid()
Public method LightingEnabled() (inherited from RenderContextBase).
Public method LockBlendState(bool) Locks the blend state so that the following calls to SetShader won't do anything until the blend states are unlocked. (inherited from RenderContextBase).
Public method LockDepthState(bool) Locks the depth stencil state so that the following calls to SetState won't do anything until the state is unlocked. (inherited from RenderContextBase).
Public method LockShaders(bool) Locks the shaders so that the following calls to SetShader won't do anything until the shaders are unlocked. (inherited from RenderContextBase).
Public method MakeCurrent()
Public method MaxTextureSize()
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method MultMatrix(double[], matrixType)
Public method MultMatrixModelView(Transformation) Multiplies the transformation by the current modelview matrix. (inherited from RenderContextBase).
Public method MultMatrixModelView(double[]) Multiplies the transformation by the current modelview matrix. (inherited from RenderContextBase).
Public method MultMatrixProj(Transformation) (inherited from RenderContextBase).
Public method MultMatrixProj(double[]) (inherited from RenderContextBase).
Public method NeedsToCaptureDepth() (inherited from RenderContextBase).
Public method NormalizeNormals(bool) Turns the vertex normals normalization on or off (OpenGL only).
Public method OpenglSetup(ControlData) OpenGL initialization. Lighting, shading, texture names, materials, quadric, are all defined here.
Public method PaintBackBuffer(int)
Public method PixelZoom(int, int) Specify the pixel zoom factors.
Public method PopBlendState() Pops the blendStateType from the stack and sets it as current. (inherited from RenderContextBase).
Public method PopDepthStencilState() Pops the depthStencilStateType from the stack and sets it as current. (inherited from RenderContextBase).
Public method PopEnvironment() Pops the environment map from the stack. (inherited from RenderContextBase).
Public method PopMatrices() Pops the modelview and projection matrices.
Public method PopModelView() Pops the Modelview matrix.
Public method PopProjection() Pops the Projection matrix.
Public method PopRasterizerState() Pops the rasterizerStateType from the stack and sets it as current. (inherited from RenderContextBase).
Public method PopShader() Pops the current shader from the stack. (inherited from RenderContextBase).
Public method PrepareLightsForShadow(bool)
Public method PrepareShadersForShadowPass(int, int[], Dictionary<shaderTypeIShaderTechnique>, ShaderParameters) (inherited from RenderContextBase).
Public method PrepareStencilForDrawing() (inherited from RenderContextBase).
Public method PrintMatrices() (inherited from RenderContextBase).
Public method ProcessClippingPlanes(ClippingPlaneBase[], bool) Updates the internal structure with the clipping planes.
Public method ProcessClippingPlanesVisibility(ClippingPlaneBase[], bool) Updates only the visibility of the clipping planes internal structure.
Public method ProcessLightAttributes(bool, bool) Updates light attributes for all light sources. Light attributes are: color and specular color. (inherited from RenderContextBase).
Public method Static ProcessLightAttributesForLitPass(LightSettings[])
Public method ProcessMaterial() Updates the current material with the default material. (inherited from RenderContextBase).
Public method PushBlendState() Pushes the current blendStateType on the stack. (inherited from RenderContextBase).
Protected method PushCurrentFBO()
Public method PushDepthStencilState() Pushes the current depthStencilStateType on the stack. (inherited from RenderContextBase).
Public method PushEnvironment() Pushes the current environment map on the stack. (inherited from RenderContextBase).
Public method PushMatrices() Pushes modelview and projection matrices. (inherited from RenderContextBase).
Public method PushModelView() Pushes the Modelview matrix.
Public method PushProjection() Pushes the Projection matrix.
Public method PushRasterizerState() Pushes the current rasterizerStateType on the stack. (inherited from RenderContextBase).
Public method PushShader() Push the current shader on the stack. (inherited from RenderContextBase).
Public method ReadBuffer(int) Sets the framebuffer to read from (OpenGL only).
Public method ReadColorBuffer(IViewport, Rectangle, out int, out int) Reads the color buffer.
Public method ReadDepth() (inherited from RenderContextBase).
Public method ReadDepthValues(int, int, Size) Reads depth values from the depth buffer.
Protected method ReadDepthValuesInternal(int[])
Public method ReadRgbValues(Point, Size, BitmapData)
Public method ReadSurface(Size, bool, bool) Reads the whole control and stores it in internal data.
Protected method RemovePolygonOffset(ref int) Removes the polygon offset when drawing the wires entity with Width grater than 1 because the wires are not influenced by the polygon offset but in Direct3D they are drawn as polygons with the geometry shader, so the PolygonOffset applies to them also. (inherited from RenderContextBase).
Public method RenderingContext() (inherited from RenderContextBase).
Public method ResetColorDiffuse(float[], float[])
Public method Resize(Size) (inherited from RenderContextBase).
Public method ResizeShadowMaps(Size, realisticShadowQualityType, ref bool) (inherited from RenderContextBase).
Public method ResizeSurfacesForCapture(Size, bool) (inherited from RenderContextBase).
Public method ResolveAlphaMapShader(shaderType) Gets the shader with the AlphaMap support. (inherited from RenderContextBase).
Protected method ResolveShaderType(ref shaderType)
Protected method RestorePolygonOffset(ref int) Restores the polygon offset to draw the polygons. (inherited from RenderContextBase).
Public method RotateMatrixModelView(double, double, double, double) Rotates the modelview matrix by <param name="angleInDegrees"> by an axis.</param> (inherited from RenderContextBase).
Public method ScaleMatrixModelView(double, double, double) (inherited from RenderContextBase).
Public method ScaleMatrixProj(double, double, double) (inherited from RenderContextBase).
Public method SetActiveTexture(textureUnitType) Enables the given textureUnit (OpenGL only).
Public method SetAlphaTexture(TextureBase) Sets the texture on a specific texture unit. (inherited from RenderContextBase).
Public method SetBlockRefTransform(float[]) Sets the blockreference world transformation matrix.
Public method SetColorDiffuse(Color, Color, bool) Sets the diffuse color of the front and back material. (inherited from RenderContextBase).
Public method SetColorMask(colorMaskFlags) Enable or disable the color components in the render buffer. (inherited from RenderContextBase).
Public method SetColorMaterial(Color, bool) Sets the color to the diffuse component of the front and back faces, depending on the ColorMaterialMode status.
Public method SetColorWireframe(Color, bool) Wireframe color changer. (inherited from RenderContextBase).
Public method SetEnvironment(IEnvironment, float) (inherited from RenderContextBase).
Public method SetEnvironment(IEnvironment, Material, ShaderParameters) (inherited from RenderContextBase).
Public method SetLightAttributes(int, float[], float[], float[], LightSettings)
Public method SetLightPosition(int, lightType, float[], float[]) Sets the light position.
Public method SetLightStatus(int, bool)
Public method SetLighting(bool) Enables the lighting. (inherited from RenderContextBase).
Protected method SetLightingInternal(bool)
Public method SetLineSize(float, bool, bool) Sets the line size and enables (or disables) the thick lines rendering. (inherited from RenderContextBase).
Protected method SetLineSizeInternal(float)
Public method SetLineStipple(int, UInt16, CameraBase) Sets the line stipple parameters.
Protected method SetLinesShader(bool, shaderType, ShaderParameters) Sets the shader for the lines with or without thick lines capabilities, adjusting also the PolygonOffset. (inherited from RenderContextBase).
Protected method SetMaterial(float[], float[], float[], float[], float)
Protected method SetMaterialBackAmbient(float[])
Public method SetMaterialBackAmbientAndDiffuse(Color, bool) Sets the material back color ambient and diffuse properties. (inherited from RenderContextBase).
Protected method SetMaterialBackDiffuse(float[])
Protected method SetMaterialFrontAmbient(float[])
Public method SetMaterialFrontAmbientAndDiffuse(Color, bool) Sets the material front color ambient and diffuse properties. (inherited from RenderContextBase).
Public method SetMaterialFrontAndBackDiffuse(Color, bool) Sets the front and back faces diffuse material color. (inherited from RenderContextBase).
Protected method SetMaterialFrontDiffuse(float[])
Protected method SetMatrices(double[], double[], double[])
Public method SetModelView(CameraBase) (inherited from RenderContextBase).
Public method SetModelViewMatrix(double[]) Sets the modelview matrix. (inherited from RenderContextBase).
Public method SetPointSize(float, bool, bool) Sets the point size and enables (or disables) the thick points rendering. (inherited from RenderContextBase).
Protected method SetPointSizeInternal(float)
Protected method SetPointsShader(bool, shaderType, ShaderParameters) Sets the shader for the points with or without thick points capabilities, adjusting also the PolygonOffset. (inherited from RenderContextBase).
Protected method SetPolygonDrawingMode(rasterizerPolygonDrawingType) Sets the polygon drawing mode. (inherited from RenderContextBase).
Public method SetProjection(CameraBase, bool)
Public method SetProjectionMatrix(double[]) Sets the projection matrix. (inherited from RenderContextBase).
Protected method SetRGB(byte, byte, byte)
Protected method SetRGBA(byte, byte, byte, byte)
Protected method SetRGBA(float[])
Public method SetRasterizerState(rasterizerPolygonDrawingType, rasterizerCullFaceType) Sets the rasterizer state. (inherited from RenderContextBase).
Public method SetSceneAmbient(float[]) Sets the ambient component that is always added to the scene (multiplied by the material's ambient component).
Public method SetShader(shaderType, ShaderParameters, bool) Sets the shader as current.
Public method SetShaders(Dictionary<shaderTypeIShaderTechnique>, bool, ShaderParameters) Sets the shaders dictionary. (inherited from RenderContextBase).
Public method SetState(blendStateType) Sets the blend state type. (inherited from RenderContextBase).
Public method SetState(depthStencilStateType) Sets the depth stencil state type. (inherited from RenderContextBase).
Public method SetState(rasterizerStateType) Sets the rasterizer state type preserving the current clockwiseness of the front face. (inherited from RenderContextBase).
Protected method SetStateInternal(blendStateType, bool, bool, bool, bool)
Protected method SetStateInternal(depthStencilStateType)
Protected method SetStateInternal(rasterizerStateType)
Public method SetTexture(TextureBase) Sets the texture on 0 texture unit. (inherited from RenderContextBase).
Public method SetTexture(TextureBase, textureUnitType) Sets the texture on a specific texture unit. (inherited from RenderContextBase).
Public method SetTexture1DWrapMode(bool)
Public method SetTextureOverExposure(bool) Sets a value that controls whether the scene lighting can make the image diffuse color brighter than the image color.
Protected method SetVendorName()
Protected method SetVendorNameInternal(string) (inherited from RenderContextBase).
Public method SetViewport(int[], float, float)
Public method SetupPolygonOffset(bool) Enables or disables the PolygonOffset feature (with Factor 1 , Units 1). (inherited from RenderContextBase).
Public method SwapBuffers()
Internal protected (Protected Friend) method ThrowEntityNotCompiledError(EntityGraphicsData) (inherited from RenderContextBase).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method TranslateMatrixModelView(double, double, double) Translates the modelview matrix. (inherited from RenderContextBase).
Public method UpdateActiveLights(LightSettings[]) Updates the active lights used for the rendering. (inherited from RenderContextBase).
Public method UpdateAntialiasing() Updates the graphics data for the Antialiasing settings.
Public method UpdateConstantBufferPerFrame(ShaderParameters) Updates the constant buffer per frame with the given data.
Public method UpdateConstantBufferPerObject() Updates the constant buffer per frame with the current data.
Protected method Static UpdateMatrix(Stack<Double>, double[]) (inherited from RenderContextBase).
Public method Static UpdateShaders(Dictionary<shaderTypeIShaderTechnique>, ShaderParameters) (inherited from RenderContextBase).
Public method UpdateShaders(ShaderParameters) Updates the shaders. (inherited from RenderContextBase).
Protected method UpdateUseFBO()
Public method UpdateVBO(EntityGraphicsData, DrawEntityCallBack, object) Updates the vertex buffer object (that must have been created dynamic).
Protected method evaluateShadersHqr()
Top
Fields
 
Name Description
Protected field CompilingEntity The entity being compiled. (inherited from RenderContextBase).
Internal protected (Protected Friend) field ControlData (inherited from RenderContextBase).
Protected field InvalidatedConstantBuffers (inherited from RenderContextBase).
Public field Static MultipleLightsWithShadows (inherited from RenderContextBase).
Public field Shaders (inherited from RenderContextBase).
Public field UsingShadowFBO (inherited from RenderContextBase).
Internal protected (Protected Friend) field currDepthMax (inherited from RenderContextBase).
Internal protected (Protected Friend) field currDepthMin (inherited from RenderContextBase).
Public field frustumData (inherited from RenderContextBase).
Protected field green16BitDictionary (inherited from RenderContextBase).
Protected field green16BppMap (inherited from RenderContextBase).
Internal protected (Protected Friend) field hdc (inherited from RenderContextBase).
Internal protected (Protected Friend) field hrc (inherited from RenderContextBase).
Protected field lineStipple Telss if the lineStipple is enabled or not. (inherited from RenderContextBase).
Protected field modelMatrices (inherited from RenderContextBase).
Protected field prevPolygonOffset (inherited from RenderContextBase).
Protected field projMatrices (inherited from RenderContextBase).
Protected field redBlue16BitDictionary (inherited from RenderContextBase).
Protected field redBlue16BppMap (inherited from RenderContextBase).
Protected field samplesBuffersARB
Protected field shadowMapFBOSize (inherited from RenderContextBase).
Protected field viewMatrices (inherited from RenderContextBase).
Protected field wnd (inherited from RenderContextBase).
Top

.NET Framework

Supported in: 4.8

In this article

Definition