Programming API Reference: EduGraf.OpenGL

Class public abstract GlGraphic

: Graphic
This is the generic OpenGL implementation of the Graphic abstraction.

Method public override Shading CreateShading()

Refer to the documentation of the class Graphic.

Method public override Surface CreateSurface()

Refer to the documentation of the class Graphic.

Method public override VisualPart CreateVisual()

Refer to the documentation of the class Graphic.

Method public override GlTextureHandle CreateTexture()

Refer to the documentation of the class Graphic.
  • Image<Rgba32image

Method public override void Render()

Refer to the documentation of the class Graphic.

Method public GlTextureHandle CreateRgbTexture()

Create a new rgb-texture with pixel-type unsigned byte or float.
  • int width
  • int height

Method public GlTextureHandle CreateRgbaTexture()

Create a new rgba-texture with pixel-type unsigned byte or float.
  • int width
  • int height

Method public GlTextureHandle CreateRedTexture()

Create a new texture having a single color channel with pixel-type unsigned byte or float.
  • int width
  • int height

Method public GlTextureHandle CreateCubeTexture()

Create a new cube-texture.
  • Image<TPixelleft
  • Image<TPixelright
  • Image<TPixelbottom
  • Image<TPixeltop
  • Image<TPixelfront
  • Image<TPixelback

Method public void TakePicture()

Take a color-picture of the scene and store it in the provided texture.