MyGlCanvas

Undocumented in source.

Constructors

this
this(Widget parent, int w, int h)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

drawGL
void drawGL()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From GLCanvas

~this
~this()
Undocumented in source.
backgroundColor
const(Color) backgroundColor()

Returns the background color.

backgroundColor
void backgroundColor(Color backgroundColor)

Sets the background color.

drawBorder
void drawBorder(bool bDrawBorder)

Set whether to draw the widget border or not.

drawBorder
bool drawBorder()

Return whether the widget border gets drawn or not.

draw
void draw(NanoContext ctx)

Draw the canvas.

drawGL
void drawGL()

Draw the GL scene. Override this method to draw the actual GL content.

drawWidgetBorder
void drawWidgetBorder(NanoContext ctx)

Internal helper function for drawing the widget border

mBackgroundColor
Color mBackgroundColor;

The background color (what is used with `glClearColor`).

mDrawBorder
bool mDrawBorder;

Whether to draw the widget border or not.

mColorBuf
GLTexture2D mColorBuf;
Undocumented in source.
mDepthBuf
GLRenderBuffer mDepthBuf;
Undocumented in source.
mFbo
GLFBO mFbo;
Undocumented in source.
lastWidth
int lastWidth;
lastHeight
int lastHeight;
Undocumented in source.
initBuffers
void initBuffers()
Undocumented in source. Be warned that the author may not have intended to support it.
releaseBuffers
void releaseBuffers()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta