#include <graphics.h>

Public Member Functions | |
| Graphics () | |
| void | init (void *param1, void *param2) |
| bool | error_check () |
| void | clear () |
| void | clear_color (vec3 &color) |
| void | clear_multi () |
| void | cleardepth () |
| void | clearstencil () |
| void | Depth (bool flag) |
| void | Blend (bool flag) |
| void | BlendFuncDstColorOne () |
| void | BlendFuncDstColorZero () |
| void | BlendFuncOneOne () |
| void | BlendFuncZeroOne () |
| void | BlendFuncOneZero () |
| void | BlendFuncZeroOneMinusAlpha () |
| void | BlendFuncOneOneMinusAlpha () |
| void | BlendFuncDstColorOneMinusDstAlpha () |
| void | BlendFuncDstColorSrcAlpha () |
| void | BlendFuncOneMinusSrcAlphaSrcAlpha () |
| void | BlendFuncSrcAlphaOneMinusSrcAlpha () |
| void | BlendFuncOneAlpha () |
| void | BlendFuncZeroSrcColor () |
| void | BlendFuncDstColorSrcColor () |
| void | BlendFuncZeroSrcAlpha () |
| void | BlendFuncOneMinusDstColorZero () |
| void | BlendFuncOneSrcAlpha () |
| void | CullFace (int mode) |
| void | Color (bool flag) |
| void | DepthFunc (int op) |
| void | Stencil (bool flag) |
| void | StencilFunc (int op, int ref, unsigned int mask) |
| void | StencilOp (int stencil_fail, int zfail, int zpass) |
| void | TwoSidedStencilOp (int face, int stencil_fail, int zfail, int zpass) |
| void | DrawText (const char *str, float x, float y) |
| void | swap () |
| void | resize (const int width, const int height) |
| void | destroy () |
| void | DrawArray (primitive_t primitive, int start_index, int start_vertex, unsigned int num_index, int num_verts) |
| void | DrawArrayTri (int start_index, int start_vertex, unsigned int num_index, int num_verts) |
| void | DrawArrayTriStrip (int start_index, int start_vertex, unsigned int num_index, int num_verts) |
| void | DrawArrayLineStrip (int start_index, int start_vertex, unsigned int num_index, int num_verts) |
| void | DrawArrayLine (int start_index, int start_vertex, unsigned int num_index, int num_verts) |
| void | DrawArrayPoint (int start_index, int start_vertex, unsigned int num_index, int num_verts) |
| void | CreateVertexArrayObject (unsigned int &vao) |
| void | SelectVertexArrayObject (unsigned int vao) |
| void | DeleteVertexArrayObject (unsigned int vao) |
| int | CreateIndexBuffer (void *index_buffer, int num_index) |
| void | SelectIndexBuffer (int handle) |
| void | DeleteIndexBuffer (int handle) |
| int | CreateVertexBuffer (void *vertex_buffer, int num_vertex, bool dynamic=false) |
| void | SelectVertexBuffer (int handle) |
| void | DeleteVertexBuffer (int handle) |
| void | SelectTexture (int level, int index) |
| void | SelectTextureArray (int level, int texObject) |
| void | DeselectTexture (int level) |
| int | CreateCubeMap () |
| void | SelectCubemap (int texObject) |
| int | LoadTexture (int width, int height, int components, int format, void *bytes, bool clamp, int anisotropic) |
| int | LoadTextureArray (int width, int height, int components, int format, void **bytes, bool clamp, int num_layer) |
| void | DeleteTexture (int handle) |
| void | SelectShader (int program) |
| int | checkFramebuffer () |
| int | CreateFramebuffer (int width, int height, unsigned int &fbo, unsigned int &quad_tex, unsigned int &depth_tex, unsigned int &normal_depth, int multisample, bool twoattach) |
| void | DeleteFrameBuffer (int fbo, int quad, int depth) |
| void | fbAttachTexture (int texObj) |
| void | fbAttachTextureOne (int texObj) |
| void | fbAttachDepth (int texObj) |
| void | bindFramebuffer (int fbo, int num_attach=1) |
| void | GetDebugLog () |
| ~Graphics () | |
Public Attributes | |
| int | width |
| int | height |
| gpustat_t | gpustat |
| Display * | display |
| Window | window |
| XFontStruct * | font |
| Graphics::Graphics | ( | ) |
| Graphics::~Graphics | ( | ) |
| void Graphics::bindFramebuffer | ( | int | fbo, |
| int | num_attach = 1 |
||
| ) |

| void Graphics::Blend | ( | bool | flag | ) |

| void Graphics::BlendFuncDstColorOne | ( | ) |

| void Graphics::BlendFuncDstColorOneMinusDstAlpha | ( | ) |

| void Graphics::BlendFuncDstColorSrcAlpha | ( | ) |

| void Graphics::BlendFuncDstColorSrcColor | ( | ) |

| void Graphics::BlendFuncDstColorZero | ( | ) |

| void Graphics::BlendFuncOneAlpha | ( | ) |
| void Graphics::BlendFuncOneMinusDstColorZero | ( | ) |

| void Graphics::BlendFuncOneMinusSrcAlphaSrcAlpha | ( | ) |

| void Graphics::BlendFuncOneOne | ( | ) |

| void Graphics::BlendFuncOneOneMinusAlpha | ( | ) |
| void Graphics::BlendFuncOneSrcAlpha | ( | ) |

| void Graphics::BlendFuncOneZero | ( | ) |

| void Graphics::BlendFuncSrcAlphaOneMinusSrcAlpha | ( | ) |

| void Graphics::BlendFuncZeroOne | ( | ) |

| void Graphics::BlendFuncZeroOneMinusAlpha | ( | ) |
| void Graphics::BlendFuncZeroSrcAlpha | ( | ) |

| void Graphics::BlendFuncZeroSrcColor | ( | ) |

| int Graphics::checkFramebuffer | ( | ) |
| void Graphics::clear | ( | ) |

| void Graphics::clear_color | ( | vec3 & | color | ) |

| void Graphics::clear_multi | ( | ) |
| void Graphics::cleardepth | ( | ) |

| void Graphics::clearstencil | ( | ) |
| void Graphics::Color | ( | bool | flag | ) |

| int Graphics::CreateCubeMap | ( | ) |
| int Graphics::CreateFramebuffer | ( | int | width, |
| int | height, | ||
| unsigned int & | fbo, | ||
| unsigned int & | quad_tex, | ||
| unsigned int & | depth_tex, | ||
| unsigned int & | normal_depth, | ||
| int | multisample, | ||
| bool | twoattach | ||
| ) |

| int Graphics::CreateIndexBuffer | ( | void * | index_buffer, |
| int | num_index | ||
| ) |

| void Graphics::CreateVertexArrayObject | ( | unsigned int & | vao | ) |

| int Graphics::CreateVertexBuffer | ( | void * | vertex_buffer, |
| int | num_vertex, | ||
| bool | dynamic = false |
||
| ) |

| void Graphics::CullFace | ( | int | mode | ) |

| void Graphics::DeleteFrameBuffer | ( | int | fbo, |
| int | quad, | ||
| int | depth | ||
| ) |

| void Graphics::DeleteIndexBuffer | ( | int | handle | ) |

| void Graphics::DeleteTexture | ( | int | handle | ) |

| void Graphics::DeleteVertexArrayObject | ( | unsigned int | vao | ) |
| void Graphics::DeleteVertexBuffer | ( | int | handle | ) |

| void Graphics::Depth | ( | bool | flag | ) |

| void Graphics::DepthFunc | ( | int | op | ) |

| void Graphics::DeselectTexture | ( | int | level | ) |
| void Graphics::destroy | ( | ) |

| void Graphics::DrawArray | ( | primitive_t | primitive, |
| int | start_index, | ||
| int | start_vertex, | ||
| unsigned int | num_index, | ||
| int | num_verts | ||
| ) |
| void Graphics::DrawArrayLine | ( | int | start_index, |
| int | start_vertex, | ||
| unsigned int | num_index, | ||
| int | num_verts | ||
| ) |
| void Graphics::DrawArrayLineStrip | ( | int | start_index, |
| int | start_vertex, | ||
| unsigned int | num_index, | ||
| int | num_verts | ||
| ) |
| void Graphics::DrawArrayPoint | ( | int | start_index, |
| int | start_vertex, | ||
| unsigned int | num_index, | ||
| int | num_verts | ||
| ) |
| void Graphics::DrawArrayTri | ( | int | start_index, |
| int | start_vertex, | ||
| unsigned int | num_index, | ||
| int | num_verts | ||
| ) |

| void Graphics::DrawArrayTriStrip | ( | int | start_index, |
| int | start_vertex, | ||
| unsigned int | num_index, | ||
| int | num_verts | ||
| ) |

| void Graphics::DrawText | ( | const char * | str, |
| float | x, | ||
| float | y | ||
| ) |
| bool Graphics::error_check | ( | ) |
| void Graphics::fbAttachDepth | ( | int | texObj | ) |

| void Graphics::fbAttachTexture | ( | int | texObj | ) |

| void Graphics::fbAttachTextureOne | ( | int | texObj | ) |
| void Graphics::GetDebugLog | ( | ) |

| void Graphics::init | ( | void * | param1, |
| void * | param2 | ||
| ) |

| int Graphics::LoadTexture | ( | int | width, |
| int | height, | ||
| int | components, | ||
| int | format, | ||
| void * | bytes, | ||
| bool | clamp, | ||
| int | anisotropic | ||
| ) |

| int Graphics::LoadTextureArray | ( | int | width, |
| int | height, | ||
| int | components, | ||
| int | format, | ||
| void ** | bytes, | ||
| bool | clamp, | ||
| int | num_layer | ||
| ) |
| void Graphics::resize | ( | const int | width, |
| const int | height | ||
| ) |

| void Graphics::SelectCubemap | ( | int | texObject | ) |
| void Graphics::SelectIndexBuffer | ( | int | handle | ) |

| void Graphics::SelectShader | ( | int | program | ) |
| void Graphics::SelectTexture | ( | int | level, |
| int | index | ||
| ) |

| void Graphics::SelectTextureArray | ( | int | level, |
| int | texObject | ||
| ) |
| void Graphics::SelectVertexArrayObject | ( | unsigned int | vao | ) |

| void Graphics::SelectVertexBuffer | ( | int | handle | ) |

| void Graphics::Stencil | ( | bool | flag | ) |

| void Graphics::StencilFunc | ( | int | op, |
| int | ref, | ||
| unsigned int | mask | ||
| ) |

| void Graphics::StencilOp | ( | int | stencil_fail, |
| int | zfail, | ||
| int | zpass | ||
| ) |

| void Graphics::swap | ( | ) |

| void Graphics::TwoSidedStencilOp | ( | int | face, |
| int | stencil_fail, | ||
| int | zfail, | ||
| int | zpass | ||
| ) |

| Display* Graphics::display |
| XFontStruct* Graphics::font |
| gpustat_t Graphics::gpustat |
| int Graphics::height |
| int Graphics::width |
| Window Graphics::window |
1.8.2