nux-0.9.48
|
Rendering engine class. More...
#include <NuxGraphics/GraphicsEngine.h>
Public Member Functions | |
GraphicsEngine (GraphicsDisplay &GlWindow, bool create_rendering_data=true) | |
~GraphicsEngine () | |
void | SetContext (int x, int y, int width, int height) |
void | GetContextSize (int &w, int &h) const |
int | GetContextWidth () const |
int | GetContextHeight () const |
int | GetContextX () const |
int | GetContextY () const |
void | GetWindowSize (int &w, int &h) const |
int | GetWindowWidth () const |
int | GetWindowHeight () const |
BaseTexture * | Load2DTextureFile (const char *filename) |
BaseTexture * | Load2DRectangleTextureFile (const char *filename) |
BaseTexture * | Load2DTextureFileGenerateAlpha (const char *filename, int red, int green, int blue) |
void | SetTexture (int TextureUnit, BaseTexture *Texture) |
void | SetTexture (int TextureUnit, ObjectPtr< IOpenGLBaseTexture > Texture) |
void | EnableTextureMode (int TextureUnit, int TextureMode) |
void | DisableTextureMode (int TextureUnit, int TextureMode) |
void | DisableAllTextureMode (int TextureUnit) |
void | QRP_1Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > Tex0, TexCoordXForm &texxform, const Color &color0) |
void | QRP_Pixelate (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture, TexCoordXForm &texxform, const Color &c0, int pixel_size) |
void | QRP_Color (int x, int y, int width, int height, const Color &c0) |
void | QRP_Color (int x, int y, int width, int height, const Color &c0, const Color &c1, const Color &c2, const Color &c3) |
void | QRP_ColorModTexAlpha (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture, TexCoordXForm &texxform0, const Color &color) |
void | QRP_2Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1) |
void | QRP_2TexMod (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1) |
void | QRP_4Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1, ObjectPtr< IOpenGLBaseTexture > DeviceTexture2, TexCoordXForm &texxform2, const Color &color2, ObjectPtr< IOpenGLBaseTexture > DeviceTexture3, TexCoordXForm &texxform3, const Color &color3) |
void | QRP_Triangle (int x0, int y0, int x1, int y1, int x2, int y2, Color c0) |
void | QRP_Triangle (int x0, int y0, int x1, int y1, int x2, int y2, Color c0, Color c1, Color c2) |
void | QRP_Line (int x0, int y0, int x1, int y1, Color c0) |
void | QRP_Line (int x0, int y0, int x1, int y1, Color c0, Color c1) |
void | QRP_QuadWireframe (int x0, int y0, int width, int height, Color c0, Color c1, Color c2, Color c3) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GetBlurTexture (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f, int num_pass=1) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GetAlphaTexture (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GetColorMatrixTexture (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, Matrix4 color_matrix, Vector4 offset) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GetPower (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, const Vector4 &exponent) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GetLQBlur (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GetHQBlur (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f, int num_pass=1) |
void | QRP_DisturbedTexture (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > distorsion_texture, TexCoordXForm &texxform0, const Color &c0, ObjectPtr< IOpenGLBaseTexture > src_device_texture, TexCoordXForm &texxform1, const Color &c1) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GetPixelBlocks (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform0, const Color &c0, int pixel_size) |
void | QRP_ASM_1Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > Tex0, TexCoordXForm &texxform, const Color &color0) |
void | QRP_ASM_Pixelate (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture, TexCoordXForm &texxform, const Color &c0, int pixel_size) |
void | QRP_ASM_Color (int x, int y, int width, int height, const Color &c0) |
void | QRP_ASM_Color (int x, int y, int width, int height, const Color &c0, const Color &c1, const Color &c2, const Color &c3) |
void | QRP_ASM_ColorModTexAlpha (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture, TexCoordXForm &texxform0, const Color &color) |
void | QRP_ASM_2Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1) |
void | QRP_ASM_2TexMod (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1) |
void | QRP_ASM_4Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1, ObjectPtr< IOpenGLBaseTexture > DeviceTexture2, TexCoordXForm &texxform2, const Color &color2, ObjectPtr< IOpenGLBaseTexture > DeviceTexture3, TexCoordXForm &texxform3, const Color &color3) |
void | QRP_ASM_Triangle (int x0, int y0, int x1, int y1, int x2, int y2, Color c0) |
void | QRP_ASM_Triangle (int x0, int y0, int x1, int y1, int x2, int y2, Color c0, Color c1, Color c2) |
void | QRP_ASM_Line (int x0, int y0, int x1, int y1, Color c0) |
void | QRP_ASM_Line (int x0, int y0, int x1, int y1, Color c0, Color c1) |
void | QRP_ASM_QuadWireframe (int x0, int y0, int width, int height, Color c0, Color c1, Color c2, Color c3) |
void | QRP_ASM_Power (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, Vector4 exponent) |
void | QRP_ASM_AlphaReplicate (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0) |
void | QRP_ASM_HorizontalGauss (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f) |
void | QRP_ASM_VerticalGauss (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f) |
void | QRP_ASM_ColorMatrix (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, Matrix4 color_matrix, Vector4 offset) |
ObjectPtr< IOpenGLBaseTexture > | QRP_ASM_GetBlurTexture (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &color, float sigma=1.0f, int num_pass=1) |
Blur texture. | |
ObjectPtr< IOpenGLBaseTexture > | QRP_ASM_GetAlphaTexture (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &color) |
Replicate the alpha channel in all components of the texture. | |
ObjectPtr< IOpenGLBaseTexture > | QRP_ASM_GetColorMatrixTexture (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c, Matrix4 color_matrix, Vector4 offset) |
Color matrix filter. | |
ObjectPtr< IOpenGLBaseTexture > | QRP_ASM_GetPower (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, const Vector4 &exponent) |
Texture components raised to a power. | |
ObjectPtr< IOpenGLBaseTexture > | QRP_ASM_GetLQBlur (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0) |
ObjectPtr< IOpenGLBaseTexture > | QRP_ASM_GetHQBlur (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f, int num_pass=1) |
void | QRP_ASM_DisturbedTexture (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > distorsion_texture, TexCoordXForm &texxform0, const Color &c0, ObjectPtr< IOpenGLBaseTexture > src_device_texture, TexCoordXForm &texxform1, const Color &c1) |
ObjectPtr< IOpenGLBaseTexture > | QRP_ASM_GetPixelBlocks (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform0, const Color &color, int pixel_size) |
Pixel blocks. | |
void | QRP_GLSL_1Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture, TexCoordXForm &texxform, const Color &c0) |
void | QRP_GLSL_Pixelate (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture, TexCoordXForm &texxform, const Color &c0, int pixel_size) |
void | QRP_GLSL_Color (int x, int y, int width, int height, const Color &c0) |
void | QRP_GLSL_Color (int x, int y, int width, int height, const Color &c0, const Color &c1, const Color &c2, const Color &c3) |
void | QRP_GLSL_ColorModTexAlpha (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture, TexCoordXForm &texxform0, const Color &color) |
void | QRP_GLSL_2Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1) |
void | QRP_GLSL_2TexMod (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1) |
void | QRP_GLSL_4Tex (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > DeviceTexture0, TexCoordXForm &texxform0, const Color &color0, ObjectPtr< IOpenGLBaseTexture > DeviceTexture1, TexCoordXForm &texxform1, const Color &color1, ObjectPtr< IOpenGLBaseTexture > DeviceTexture2, TexCoordXForm &texxform2, const Color &color2, ObjectPtr< IOpenGLBaseTexture > DeviceTexture3, TexCoordXForm &texxform3, const Color &color3) |
void | QRP_GLSL_Triangle (int x0, int y0, int x1, int y1, int x2, int y2, Color c0) |
void | QRP_GLSL_Triangle (int x0, int y0, int x1, int y1, int x2, int y2, Color c0, Color c1, Color c2) |
void | QRP_GLSL_Line (int x0, int y0, int x1, int y1, Color c0) |
void | QRP_GLSL_Line (int x0, int y0, int x1, int y1, Color c0, Color c1) |
void | QRP_GLSL_QuadWireframe (int x0, int y0, int width, int height, Color c0, Color c1, Color c2, Color c3) |
void | QRP_GLSL_Power (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, Vector4 exponent) |
void | QRP_GLSL_AlphaReplicate (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0) |
void | QRP_GLSL_HorizontalGauss (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f) |
void | QRP_GLSL_VerticalGauss (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f) |
void | QRP_GLSL_HorizontalHQGauss (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f) |
void | QRP_GLSL_VerticalHQGauss (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f) |
void | QRP_GLSL_ColorMatrix (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, Matrix4 color_matrix, Vector4 offset) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GLSL_GetBlurTexture (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f, int num_pass=1) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GLSL_GetAlphaTexture (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GLSL_GetColorMatrixTexture (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, Matrix4 color_matrix, Vector4 offset) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GLSL_GetPower (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, const Vector4 &exponent) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GLSL_GetLQBlur (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GLSL_GetHQBlur (int x, int y, int buffer_width, int buffer_height, ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform, const Color &c0, float sigma=1.0f, int num_pass=1) |
void | QRP_GLSL_DisturbedTexture (int x, int y, int width, int height, ObjectPtr< IOpenGLBaseTexture > distorsion_texture, TexCoordXForm &texxform0, const Color &c0, ObjectPtr< IOpenGLBaseTexture > src_device_texture, TexCoordXForm &texxform1, const Color &c1) |
ObjectPtr< IOpenGLBaseTexture > | QRP_GLSL_GetPixelBlocks (ObjectPtr< IOpenGLBaseTexture > device_texture, TexCoordXForm &texxform0, const Color &c0, int pixel_size) |
Pixel blocks. | |
void | PushClippingRectangle (Rect rect) |
void | PopClippingRectangle () |
void | EmptyClippingRegion () |
void | ApplyClippingRectangle () |
Set the clipping according to the clipping rectangle stack. | |
void | SetGlobalClippingRectangle (Rect rect) |
void | DisableGlobalClippingRectangle () |
void | SetClippingRectangle (const Rect &rect) |
Bypass the clipping rectangle stack and set a different clipping rectangle region. | |
void | SetOpenGLClippingRectangle (int x, int y, unsigned int width, unsigned int height) |
Bypass the clipping rectangle stack and set a different clipping rectangle region. | |
Rect | GetClippingRegion () const |
int | GetNumberOfClippingRegions () const |
void | AddClipOffset (int x, int y) |
Deprecated. Use PushClipOffset. | |
void | PushClipOffset (int x, int y) |
void | PopClipOffset () |
void | ClearAreaColorDepthStencil (int x, int y, int width, int height, Color clearcolor, float cleardepth, int clearstencil) |
void | ClearAreaColor (int x, int y, int width, int height, Color clearcolor) |
void | ClearAreaDepthStencil (int x, int y, int width, int height, float cleardepth, int clearstencil) |
void | Set3DView (int w, int h) |
void | Push2DWindow (int w, int h) |
Push a screen aligned 2D matrix. | |
void | Pop2DWindow () |
void | Push2DModelViewMatrix (Matrix4 mat) |
Matrix4 | Pop2DModelViewMatrix () |
void | Clear2DModelViewMatrix () |
void | SetViewport (int x, int y, int w, int h) |
Rect | GetViewportRect () const |
int | GetViewportWidth () const |
int | GetViewportHeight () const |
int | GetViewportX () const |
int | GetViewportY () const |
void | GetViewportSize (int &viewport_width, int &viewport_height) const |
void | SetScissor (int x, int y, int w, int h) |
void | SetScissorOffset (int x, int y) |
Rect | GetScissorRect () |
void | EnableScissoring (bool b) |
int | RenderColorText (ObjectPtr< FontTexture > Font, int x, int y, const NString &Str, const Color &TextColor, bool WriteAlphaChannel, int NumCharacter) |
int | RenderColorTextLineStatic (ObjectPtr< FontTexture > Font, const PageBBox &pageSize, const NString &Str, const Color &TextColor, bool WriteAlphaChannel, TextAlignment alignment) |
int | RenderColorTextLineEdit (ObjectPtr< FontTexture > Font, const PageBBox &pageSize, const NString &Str, const Color &TextColor, bool WriteAlphaChannel, const Color &SelectedTextColor, const Color &SelectedTextBackgroundColor, const Color &TextBlinkColor, const Color &CursorColor, bool ShowCursor, unsigned int CursorPosition, int offset=0, int selection_start=0, int selection_end=0) |
ObjectPtr< IOpenGLBaseTexture > | CreateTextureFromBackBuffer (int x, int y, int width, int height) |
void | ResetStats () |
ObjectPtr< CachedResourceData > | CacheResource (ResourceData *Resource) |
void | UpdateResource (ResourceData *Resource) |
bool | FlushCachedResourceData (ResourceData *Resource) |
bool | IsResourceCached (ResourceData *Resource) |
Matrix4 | GetProjectionMatrix () |
Matrix4 | GetOpenGLProjectionMatrix () |
Return the transpose version of GetProjectionMatrix ();. | |
void | SetProjectionMatrix (const Matrix4 &matrix) |
void | SetOrthographicProjectionMatrix (int viewport_width, int viewport_height) |
Set orthographic projection matrix. | |
void | ResetProjectionMatrix () |
Reset the projection matrix to identity. | |
Matrix4 | GetModelViewMatrix () |
Matrix4 | GetOpenGLModelViewMatrix () |
Return the transpose version of GetModelViewMatrix ();. | |
Matrix4 | GetModelViewProjectionMatrix () |
Matrix4 | GetOpenGLModelViewProjectionMatrix () |
GpuRenderStates & | GetRenderStates () |
void | ResetRenderStates () |
void | VerifyRenderStates () |
ObjectPtr< FontTexture > | GetFont () |
ObjectPtr< FontTexture > | GetBoldFont () |
bool | UsingGLSLCodePath () |
Return True is GraphicsEngine is using the GLSL shader code path. | |
bool | UsingARBProgramCodePath () |
Return True is GraphicsEngine is using the ARB program code path. | |
void | PushModelViewMatrix (const Matrix4 &matrix) |
Push a model view matrix on the stack. | |
void | PushIdentityModelViewMatrix () |
Push an Identity model view matrix on the stack. | |
void | Push2DTranslationModelViewMatrix (float tx, float ty, float tz) |
Push a 2D Translation model view matrix. | |
bool | PopModelViewMatrix () |
Pop a model view matrix off the stack. | |
void | ResetModelViewMatrixStack () |
Reset the model view matrix to identity. | |
void | SetModelViewMatrix (const Matrix4 &matrix) |
Bypass the model view matrix stack and set a custom matrix. | |
void | ApplyModelViewMatrix () |
Set the model view matrix according to the model view matrix stack. | |
Rect | ModelViewXFormRect (const Rect &rect) |
Transform a rectangle with the model view matrix. | |
int | ModelViewStackDepth () |
Return the depth of the model view matrix stack. | |
void | PushProjectionMatrix (const Matrix4 &matrix) |
Push a projection matrix on the stack. | |
bool | PopProjectionMatrix () |
Pop a projection matrix off the stack. | |
int | ProjectionStackDepth () |
Return the depth of the projection matrix stack. | |
void | PushPorterDuffBlend (const PorterDuffOperator &porter_duff_op) |
Push a raster operation configuration setting on the stack. | |
void | PushDisableBlend () |
Push a state that disables the blending. | |
void | PushBlend (unsigned int src_blend, unsigned int dst_blend) |
Push a custom blend state. | |
bool | PopBlend () |
Pop a raster operation configuration setting off the stack. | |
int | BlendStackDepth () |
Return the depth of the raster operation stack. | |
Data Fields | |
OpenGLContext | m_CurrrentContext |
std::vector< Rect > | ClippingRect |
std::list< Matrix4 > | m_2DModelViewMatricesStack |
NResourceCache | ResourceCache |
Rendering engine class.
nux::GraphicsEngine::GraphicsEngine | ( | GraphicsDisplay & | GlWindow, |
bool | create_rendering_data = true |
||
) |
GlWindow | The graphics window for this rendering engine. |
create_rendering_data | If true, then in GraphicsEngine, the system creates the OpenGL shaders and the font textures for the rendering. |
nux::GraphicsEngine::~GraphicsEngine | ( | ) |
void nux::GraphicsEngine::AddClipOffset | ( | int | x, |
int | y | ||
) |
Deprecated. Use PushClipOffset.
void nux::GraphicsEngine::ApplyClippingRectangle | ( | ) |
Set the clipping according to the clipping rectangle stack.
void nux::GraphicsEngine::ApplyModelViewMatrix | ( | ) |
Set the model view matrix according to the model view matrix stack.
int nux::GraphicsEngine::BlendStackDepth | ( | ) |
Return the depth of the raster operation stack.
ObjectPtr<CachedResourceData> nux::GraphicsEngine::CacheResource | ( | ResourceData * | Resource | ) |
Cache a resource if it has previously been cached. If the resource does not contain valid data then the returned value is not valid. Check that the returned hardware resource is valid by calling ObjectPtr<CachedResourceData>.IsValid().
Resource | The resource to cache. |
void nux::GraphicsEngine::Clear2DModelViewMatrix | ( | ) |
void nux::GraphicsEngine::ClearAreaColor | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
Color | clearcolor | ||
) |
void nux::GraphicsEngine::ClearAreaColorDepthStencil | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
Color | clearcolor, | ||
float | cleardepth, | ||
int | clearstencil | ||
) |
void nux::GraphicsEngine::ClearAreaDepthStencil | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
float | cleardepth, | ||
int | clearstencil | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::CreateTextureFromBackBuffer | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
void nux::GraphicsEngine::DisableAllTextureMode | ( | int | TextureUnit | ) |
void nux::GraphicsEngine::DisableGlobalClippingRectangle | ( | ) |
void nux::GraphicsEngine::DisableTextureMode | ( | int | TextureUnit, |
int | TextureMode | ||
) |
void nux::GraphicsEngine::EmptyClippingRegion | ( | ) |
void nux::GraphicsEngine::EnableScissoring | ( | bool | b | ) |
void nux::GraphicsEngine::EnableTextureMode | ( | int | TextureUnit, |
int | TextureMode | ||
) |
bool nux::GraphicsEngine::FlushCachedResourceData | ( | ResourceData * | Resource | ) |
ObjectPtr<FontTexture> nux::GraphicsEngine::GetBoldFont | ( | ) |
Rect nux::GraphicsEngine::GetClippingRegion | ( | ) | const |
int nux::GraphicsEngine::GetContextHeight | ( | ) | const |
void nux::GraphicsEngine::GetContextSize | ( | int & | w, |
int & | h | ||
) | const |
int nux::GraphicsEngine::GetContextWidth | ( | ) | const |
int nux::GraphicsEngine::GetContextX | ( | ) | const |
int nux::GraphicsEngine::GetContextY | ( | ) | const |
ObjectPtr<FontTexture> nux::GraphicsEngine::GetFont | ( | ) |
Matrix4 nux::GraphicsEngine::GetModelViewMatrix | ( | ) |
Matrix4 nux::GraphicsEngine::GetModelViewProjectionMatrix | ( | ) |
int nux::GraphicsEngine::GetNumberOfClippingRegions | ( | ) | const |
Matrix4 nux::GraphicsEngine::GetOpenGLModelViewMatrix | ( | ) |
Return the transpose version of GetModelViewMatrix ();.
Matrix4 nux::GraphicsEngine::GetOpenGLModelViewProjectionMatrix | ( | ) |
Matrix4 nux::GraphicsEngine::GetOpenGLProjectionMatrix | ( | ) |
Return the transpose version of GetProjectionMatrix ();.
Matrix4 nux::GraphicsEngine::GetProjectionMatrix | ( | ) |
GpuRenderStates& nux::GraphicsEngine::GetRenderStates | ( | ) | [inline] |
Rect nux::GraphicsEngine::GetScissorRect | ( | ) |
int nux::GraphicsEngine::GetViewportHeight | ( | ) | const |
Rect nux::GraphicsEngine::GetViewportRect | ( | ) | const |
void nux::GraphicsEngine::GetViewportSize | ( | int & | viewport_width, |
int & | viewport_height | ||
) | const |
int nux::GraphicsEngine::GetViewportWidth | ( | ) | const |
int nux::GraphicsEngine::GetViewportX | ( | ) | const |
int nux::GraphicsEngine::GetViewportY | ( | ) | const |
int nux::GraphicsEngine::GetWindowHeight | ( | ) | const |
void nux::GraphicsEngine::GetWindowSize | ( | int & | w, |
int & | h | ||
) | const |
int nux::GraphicsEngine::GetWindowWidth | ( | ) | const |
bool nux::GraphicsEngine::IsResourceCached | ( | ResourceData * | Resource | ) |
BaseTexture* nux::GraphicsEngine::Load2DRectangleTextureFile | ( | const char * | filename | ) |
BaseTexture* nux::GraphicsEngine::Load2DTextureFile | ( | const char * | filename | ) |
BaseTexture* nux::GraphicsEngine::Load2DTextureFileGenerateAlpha | ( | const char * | filename, |
int | red, | ||
int | green, | ||
int | blue | ||
) |
int nux::GraphicsEngine::ModelViewStackDepth | ( | ) |
Return the depth of the model view matrix stack.
Transform a rectangle with the model view matrix.
This transformation is only good as long as the model view matrix only contains 2D translations. The output rectangle width and height are the same as the input rectangle.
rect | The rectangle to transform. |
Matrix4 nux::GraphicsEngine::Pop2DModelViewMatrix | ( | ) |
void nux::GraphicsEngine::Pop2DWindow | ( | ) |
bool nux::GraphicsEngine::PopBlend | ( | ) |
Pop a raster operation configuration setting off the stack.
Return True is a matrix was successfully popped. False if there was no matrix to pop.
void nux::GraphicsEngine::PopClipOffset | ( | ) |
void nux::GraphicsEngine::PopClippingRectangle | ( | ) |
bool nux::GraphicsEngine::PopModelViewMatrix | ( | ) |
Pop a model view matrix off the stack.
Return True is a matrix was successfully popped. False if there was no matrix to pop.
bool nux::GraphicsEngine::PopProjectionMatrix | ( | ) |
Pop a projection matrix off the stack.
Return True is a matrix was successfully popped. False if there was no matrix to pop.
int nux::GraphicsEngine::ProjectionStackDepth | ( | ) |
Return the depth of the projection matrix stack.
void nux::GraphicsEngine::Push2DModelViewMatrix | ( | Matrix4 | mat | ) |
void nux::GraphicsEngine::Push2DTranslationModelViewMatrix | ( | float | tx, |
float | ty, | ||
float | tz | ||
) |
Push a 2D Translation model view matrix.
This is used by Nux to harmonize quads and lines pixel rendering in OpenGL.
void nux::GraphicsEngine::Push2DWindow | ( | int | w, |
int | h | ||
) |
Push a screen aligned 2D matrix.
void nux::GraphicsEngine::PushBlend | ( | unsigned int | src_blend, |
unsigned int | dst_blend | ||
) |
Push a custom blend state.
src_blend | OpenGL source blending mode. |
dst_blend | OpenGL destination blending mode. |
void nux::GraphicsEngine::PushClipOffset | ( | int | x, |
int | y | ||
) |
void nux::GraphicsEngine::PushClippingRectangle | ( | Rect | rect | ) |
void nux::GraphicsEngine::PushDisableBlend | ( | ) |
Push a state that disables the blending.
void nux::GraphicsEngine::PushIdentityModelViewMatrix | ( | ) |
Push an Identity model view matrix on the stack.
void nux::GraphicsEngine::PushModelViewMatrix | ( | const Matrix4 & | matrix | ) |
Push a model view matrix on the stack.
void nux::GraphicsEngine::PushPorterDuffBlend | ( | const PorterDuffOperator & | porter_duff_op | ) |
Push a raster operation configuration setting on the stack.
void nux::GraphicsEngine::PushProjectionMatrix | ( | const Matrix4 & | matrix | ) |
Push a projection matrix on the stack.
void nux::GraphicsEngine::QRP_1Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | Tex0, | ||
TexCoordXForm & | texxform, | ||
const Color & | color0 | ||
) |
void nux::GraphicsEngine::QRP_2Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1 | ||
) |
void nux::GraphicsEngine::QRP_2TexMod | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1 | ||
) |
void nux::GraphicsEngine::QRP_4Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture2, | ||
TexCoordXForm & | texxform2, | ||
const Color & | color2, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture3, | ||
TexCoordXForm & | texxform3, | ||
const Color & | color3 | ||
) |
void nux::GraphicsEngine::QRP_ASM_1Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | Tex0, | ||
TexCoordXForm & | texxform, | ||
const Color & | color0 | ||
) |
void nux::GraphicsEngine::QRP_ASM_2Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1 | ||
) |
void nux::GraphicsEngine::QRP_ASM_2TexMod | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1 | ||
) |
void nux::GraphicsEngine::QRP_ASM_4Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture2, | ||
TexCoordXForm & | texxform2, | ||
const Color & | color2, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture3, | ||
TexCoordXForm & | texxform3, | ||
const Color & | color3 | ||
) |
void nux::GraphicsEngine::QRP_ASM_AlphaReplicate | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0 | ||
) |
void nux::GraphicsEngine::QRP_ASM_Color | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
const Color & | c0 | ||
) |
void nux::GraphicsEngine::QRP_ASM_Color | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
const Color & | c0, | ||
const Color & | c1, | ||
const Color & | c2, | ||
const Color & | c3 | ||
) |
void nux::GraphicsEngine::QRP_ASM_ColorMatrix | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
Matrix4 | color_matrix, | ||
Vector4 | offset | ||
) |
void nux::GraphicsEngine::QRP_ASM_ColorModTexAlpha | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color | ||
) |
void nux::GraphicsEngine::QRP_ASM_DisturbedTexture | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | distorsion_texture, | ||
TexCoordXForm & | texxform0, | ||
const Color & | c0, | ||
ObjectPtr< IOpenGLBaseTexture > | src_device_texture, | ||
TexCoordXForm & | texxform1, | ||
const Color & | c1 | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_ASM_GetAlphaTexture | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | color | ||
) |
Replicate the alpha channel in all components of the texture.
device_texture | Source texture. |
texxform | Texture transformation parameter. |
color | Modulation color. |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_ASM_GetBlurTexture | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | color, | ||
float | sigma = 1.0f , |
||
int | num_pass = 1 |
||
) |
Blur texture.
device_texture | The texture that is to be blurred. |
texxform | Texture transformation of device_texture. |
x | Position of the source texture in result buffer. |
y | Position of the source texture in result buffer. |
buffer_width | Width of result texture. |
buffer_height | Height of result texture. |
sigma |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_ASM_GetColorMatrixTexture | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | c, | ||
Matrix4 | color_matrix, | ||
Vector4 | offset | ||
) |
Color matrix filter.
device_texture | Source texture. |
texxform | Texture transformation parameter. |
c | Modulation color. |
color_matrix | 4x4 section of the color matrix filter. |
offset | Last column of the color matrix filter. |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_ASM_GetHQBlur | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f , |
||
int | num_pass = 1 |
||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_ASM_GetLQBlur | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0 | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_ASM_GetPixelBlocks | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform0, | ||
const Color & | color, | ||
int | pixel_size | ||
) |
Pixel blocks.
device_texture | Source texture. |
texxform | Texture transformation parameter. |
color | Modulation color. |
pixel_size | Size of pixel blocks. |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_ASM_GetPower | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
const Vector4 & | exponent | ||
) |
Texture components raised to a power.
Each component of the texture is raised to a power provided in the exponent parameter.
device_texture | Source texture. |
texxform | Texture transformation parameter. |
c | Modulation color. |
exponent | Power values for each component. |
void nux::GraphicsEngine::QRP_ASM_HorizontalGauss | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f |
||
) |
void nux::GraphicsEngine::QRP_ASM_Line | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
Color | c0 | ||
) |
void nux::GraphicsEngine::QRP_ASM_Pixelate | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
int | pixel_size | ||
) |
void nux::GraphicsEngine::QRP_ASM_Power | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
Vector4 | exponent | ||
) |
void nux::GraphicsEngine::QRP_ASM_QuadWireframe | ( | int | x0, |
int | y0, | ||
int | width, | ||
int | height, | ||
Color | c0, | ||
Color | c1, | ||
Color | c2, | ||
Color | c3 | ||
) |
void nux::GraphicsEngine::QRP_ASM_Triangle | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | c0 | ||
) |
void nux::GraphicsEngine::QRP_ASM_Triangle | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | c0, | ||
Color | c1, | ||
Color | c2 | ||
) |
void nux::GraphicsEngine::QRP_ASM_VerticalGauss | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f |
||
) |
void nux::GraphicsEngine::QRP_Color | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
const Color & | c0, | ||
const Color & | c1, | ||
const Color & | c2, | ||
const Color & | c3 | ||
) |
void nux::GraphicsEngine::QRP_Color | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
const Color & | c0 | ||
) |
void nux::GraphicsEngine::QRP_ColorModTexAlpha | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color | ||
) |
void nux::GraphicsEngine::QRP_DisturbedTexture | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | distorsion_texture, | ||
TexCoordXForm & | texxform0, | ||
const Color & | c0, | ||
ObjectPtr< IOpenGLBaseTexture > | src_device_texture, | ||
TexCoordXForm & | texxform1, | ||
const Color & | c1 | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GetAlphaTexture | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | c0 | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GetBlurTexture | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f , |
||
int | num_pass = 1 |
||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GetColorMatrixTexture | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
Matrix4 | color_matrix, | ||
Vector4 | offset | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GetHQBlur | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f , |
||
int | num_pass = 1 |
||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GetLQBlur | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0 | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GetPixelBlocks | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform0, | ||
const Color & | c0, | ||
int | pixel_size | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GetPower | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
const Vector4 & | exponent | ||
) |
void nux::GraphicsEngine::QRP_GLSL_1Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_2Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_2TexMod | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_4Tex | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture0, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color0, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture1, | ||
TexCoordXForm & | texxform1, | ||
const Color & | color1, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture2, | ||
TexCoordXForm & | texxform2, | ||
const Color & | color2, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture3, | ||
TexCoordXForm & | texxform3, | ||
const Color & | color3 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_AlphaReplicate | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_Color | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
const Color & | c0, | ||
const Color & | c1, | ||
const Color & | c2, | ||
const Color & | c3 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_Color | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
const Color & | c0 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_ColorMatrix | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
Matrix4 | color_matrix, | ||
Vector4 | offset | ||
) |
void nux::GraphicsEngine::QRP_GLSL_ColorModTexAlpha | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture, | ||
TexCoordXForm & | texxform0, | ||
const Color & | color | ||
) |
void nux::GraphicsEngine::QRP_GLSL_DisturbedTexture | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | distorsion_texture, | ||
TexCoordXForm & | texxform0, | ||
const Color & | c0, | ||
ObjectPtr< IOpenGLBaseTexture > | src_device_texture, | ||
TexCoordXForm & | texxform1, | ||
const Color & | c1 | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GLSL_GetAlphaTexture | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | c0 | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GLSL_GetBlurTexture | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f , |
||
int | num_pass = 1 |
||
) |
device_texture | The texture that is to be blurred. |
texxform | Texture transformation of device_texture. |
x | Position of the source texture in result buffer. |
y | Position of the source texture in result buffer. |
buffer_width | Width of result texture. |
buffer_height | Height of result texture. |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GLSL_GetColorMatrixTexture | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
Matrix4 | color_matrix, | ||
Vector4 | offset | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GLSL_GetHQBlur | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f , |
||
int | num_pass = 1 |
||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GLSL_GetLQBlur | ( | int | x, |
int | y, | ||
int | buffer_width, | ||
int | buffer_height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0 | ||
) |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GLSL_GetPixelBlocks | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform0, | ||
const Color & | c0, | ||
int | pixel_size | ||
) |
Pixel blocks.
device_texture | Source texture. |
texxform | Texture transformation parameter. |
color | Modulation color. |
pixel_size | Size of pixel blocks. |
ObjectPtr<IOpenGLBaseTexture> nux::GraphicsEngine::QRP_GLSL_GetPower | ( | ObjectPtr< IOpenGLBaseTexture > | device_texture, |
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
const Vector4 & | exponent | ||
) |
void nux::GraphicsEngine::QRP_GLSL_HorizontalGauss | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f |
||
) |
void nux::GraphicsEngine::QRP_GLSL_HorizontalHQGauss | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f |
||
) |
void nux::GraphicsEngine::QRP_GLSL_Line | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
Color | c0 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_Pixelate | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
int | pixel_size | ||
) |
void nux::GraphicsEngine::QRP_GLSL_Power | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
Vector4 | exponent | ||
) |
void nux::GraphicsEngine::QRP_GLSL_QuadWireframe | ( | int | x0, |
int | y0, | ||
int | width, | ||
int | height, | ||
Color | c0, | ||
Color | c1, | ||
Color | c2, | ||
Color | c3 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_Triangle | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | c0, | ||
Color | c1, | ||
Color | c2 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_Triangle | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | c0 | ||
) |
void nux::GraphicsEngine::QRP_GLSL_VerticalGauss | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f |
||
) |
void nux::GraphicsEngine::QRP_GLSL_VerticalHQGauss | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | device_texture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
float | sigma = 1.0f |
||
) |
void nux::GraphicsEngine::QRP_Line | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
Color | c0 | ||
) |
void nux::GraphicsEngine::QRP_Pixelate | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
ObjectPtr< IOpenGLBaseTexture > | DeviceTexture, | ||
TexCoordXForm & | texxform, | ||
const Color & | c0, | ||
int | pixel_size | ||
) |
void nux::GraphicsEngine::QRP_QuadWireframe | ( | int | x0, |
int | y0, | ||
int | width, | ||
int | height, | ||
Color | c0, | ||
Color | c1, | ||
Color | c2, | ||
Color | c3 | ||
) |
void nux::GraphicsEngine::QRP_Triangle | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | c0 | ||
) |
void nux::GraphicsEngine::QRP_Triangle | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | c0, | ||
Color | c1, | ||
Color | c2 | ||
) |
int nux::GraphicsEngine::RenderColorText | ( | ObjectPtr< FontTexture > | Font, |
int | x, | ||
int | y, | ||
const NString & | Str, | ||
const Color & | TextColor, | ||
bool | WriteAlphaChannel, | ||
int | NumCharacter | ||
) |
int nux::GraphicsEngine::RenderColorTextLineEdit | ( | ObjectPtr< FontTexture > | Font, |
const PageBBox & | pageSize, | ||
const NString & | Str, | ||
const Color & | TextColor, | ||
bool | WriteAlphaChannel, | ||
const Color & | SelectedTextColor, | ||
const Color & | SelectedTextBackgroundColor, | ||
const Color & | TextBlinkColor, | ||
const Color & | CursorColor, | ||
bool | ShowCursor, | ||
unsigned int | CursorPosition, | ||
int | offset = 0 , |
||
int | selection_start = 0 , |
||
int | selection_end = 0 |
||
) |
int nux::GraphicsEngine::RenderColorTextLineStatic | ( | ObjectPtr< FontTexture > | Font, |
const PageBBox & | pageSize, | ||
const NString & | Str, | ||
const Color & | TextColor, | ||
bool | WriteAlphaChannel, | ||
TextAlignment | alignment | ||
) |
void nux::GraphicsEngine::ResetModelViewMatrixStack | ( | ) |
Reset the model view matrix to identity.
void nux::GraphicsEngine::ResetProjectionMatrix | ( | ) |
Reset the projection matrix to identity.
void nux::GraphicsEngine::ResetRenderStates | ( | ) | [inline] |
void nux::GraphicsEngine::ResetStats | ( | ) |
void nux::GraphicsEngine::Set3DView | ( | int | w, |
int | h | ||
) |
void nux::GraphicsEngine::SetClippingRectangle | ( | const Rect & | rect | ) |
Bypass the clipping rectangle stack and set a different clipping rectangle region.
You may restore the clipping rectangle stack with ApplyClippingRectangle.
void nux::GraphicsEngine::SetContext | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
void nux::GraphicsEngine::SetGlobalClippingRectangle | ( | Rect | rect | ) |
void nux::GraphicsEngine::SetModelViewMatrix | ( | const Matrix4 & | matrix | ) |
Bypass the model view matrix stack and set a custom matrix.
You may restore the view matrix stack by calling ApplyModelViewMatrix.
void nux::GraphicsEngine::SetOpenGLClippingRectangle | ( | int | x, |
int | y, | ||
unsigned int | width, | ||
unsigned int | height | ||
) |
Bypass the clipping rectangle stack and set a different clipping rectangle region.
void nux::GraphicsEngine::SetOrthographicProjectionMatrix | ( | int | viewport_width, |
int | viewport_height | ||
) |
Set orthographic projection matrix.
The default projection matrix used by nux.
viewport_width | Viewport width. |
viewport_height | Viewport height. |
void nux::GraphicsEngine::SetProjectionMatrix | ( | const Matrix4 & | matrix | ) |
void nux::GraphicsEngine::SetScissor | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) |
void nux::GraphicsEngine::SetScissorOffset | ( | int | x, |
int | y | ||
) |
When setting a matrix to translate the widgets, the scissor region is not translated accordingly. This function provides a mean to offset the scissor region. It is useful when translating a widget during and overlay drawing. See an example in the code of NUX-01.
x | Clipping area offset. |
y | Clipping area offset. |
void nux::GraphicsEngine::SetTexture | ( | int | TextureUnit, |
ObjectPtr< IOpenGLBaseTexture > | Texture | ||
) |
void nux::GraphicsEngine::SetTexture | ( | int | TextureUnit, |
BaseTexture * | Texture | ||
) |
void nux::GraphicsEngine::SetViewport | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) |
void nux::GraphicsEngine::UpdateResource | ( | ResourceData * | Resource | ) |
Update a resource if it has previously been cached.
Resource | The resource to cache. |
bool nux::GraphicsEngine::UsingARBProgramCodePath | ( | ) |
Return True is GraphicsEngine is using the ARB program code path.
bool nux::GraphicsEngine::UsingGLSLCodePath | ( | ) |
Return True is GraphicsEngine is using the GLSL shader code path.
void nux::GraphicsEngine::VerifyRenderStates | ( | ) | [inline] |
References nux::GpuRenderStates::CheckStateChange().
std::vector<Rect> nux::GraphicsEngine::ClippingRect [mutable] |