|
| | gGLRenderEngine ()=default |
| |
| | ~gGLRenderEngine () override |
| |
| void | clear () override |
| |
| void | clearColor (int r, int g, int b, int a=255) override |
| |
| void | clearColor (gColor color) override |
| |
| void | takeScreenshot (gImage &img, int x, int y, int width, int height) override |
| |
| void | takeScreenshot (gImage &img) override |
| |
| void | enableDepthTest () override |
| |
| void | enableDepthTest (int depthTestType) override |
| |
| void | setDepthTestFunc (int depthTestType) override |
| |
| void | disableDepthTest () override |
| |
| bool | isDepthTestEnabled () override |
| |
| int | getDepthTestType () override |
| |
| void | enableAlphaBlending () override |
| |
| void | disableAlphaBlending () override |
| |
| bool | isAlphaBlendingEnabled () override |
| |
| void | enableAlphaTest () override |
| |
| void | disableAlphaTest () override |
| |
| bool | isAlphaTestEnabled () override |
| |
| GLuint | genBuffers () override |
| |
| void | deleteBuffer (GLuint &buffer) override |
| |
| void | bindBuffer (GLenum target, GLuint buffer) override |
| |
| void | unbindBuffer (GLenum target) override |
| |
| void | bufSubData (GLuint buffer, int offset, int size, const void *data) override |
| |
| void | setBufferData (GLuint buffer, const void *data, size_t size, int usage) override |
| |
| void | setBufferRange (int index, GLuint buffer, int offset, int size) override |
| |
| GLuint | createVAO () override |
| |
| void | deleteVAO (GLuint &vao) override |
| |
| void | bindVAO (GLuint vao) override |
| |
| void | unbindVAO () override |
| |
| void | setVertexBufferData (GLuint vbo, size_t size, const void *data, int usage) override |
| |
| void | setIndexBufferData (GLuint ebo, size_t size, const void *data, int usage) override |
| |
| void | drawArrays (int drawMode, int count) override |
| |
| void | drawElements (int drawMode, int count) override |
| |
| void | enableVertexAttrib (int index) override |
| |
| void | disableVertexAttrib (int index) override |
| |
| void | setVertexAttribPointer (int index, int size, int type, bool normalized, int stride, const void *pointer) override |
| |
| void | setViewport (int x, int y, int width, int height) override |
| |
| GLuint | createFramebuffer () override |
| |
| void | deleteFramebuffer (GLuint &fbo) override |
| |
| void | bindFramebuffer (GLuint fbo) override |
| |
| void | checkFramebufferStatus () override |
| |
| GLuint | createRenderbuffer () override |
| |
| void | deleteRenderbuffer (GLuint &rbo) override |
| |
| void | bindRenderbuffer (GLuint rbo) override |
| |
| void | setRenderbufferStorage (GLenum format, int width, int height) override |
| |
| void | attachTextureToFramebuffer (GLenum attachment, GLenum textarget, GLuint texId, GLuint level=0) override |
| |
| void | attachRenderbufferToFramebuffer (GLenum attachment, GLuint rbo) override |
| |
| void | setDrawBufferNone () override |
| |
| void | setReadBufferNone () override |
| |
| void | createFullscreenQuad (GLuint &vao, GLuint &vbo) override |
| |
| void | deleteFullscreenQuad (GLuint &vao, GLuint *vbo) override |
| |
| GLuint | loadProgram (const char *vertexSource, const char *fragmentSource, const char *geometrySource) override |
| |
| void | checkCompileErrors (GLuint shader, const std::string &type) override |
| |
| void | setBool (GLuint uniformloc, bool value) override |
| |
| void | setInt (GLuint uniformloc, int value) override |
| |
| void | setUnsignedInt (GLuint uniformloc, unsigned int value) override |
| |
| void | setFloat (GLuint uniformloc, float value) override |
| |
| void | setVec2 (GLuint uniformloc, const glm::vec2 &value) override |
| |
| void | setVec2 (GLuint uniformloc, float x, float y) override |
| |
| void | setVec3 (GLuint uniformloc, const glm::vec3 &value) override |
| |
| void | setVec3 (GLuint uniformloc, float x, float y, float z) override |
| |
| void | setVec4 (GLuint uniformloc, const glm::vec4 &value) override |
| |
| void | setVec4 (GLuint uniformloc, float x, float y, float z, float w) override |
| |
| void | setMat2 (GLuint uniformloc, const glm::mat2 &mat) override |
| |
| void | setMat3 (GLuint uniformloc, const glm::mat3 &mat) override |
| |
| void | setMat4 (GLuint uniformloc, const glm::mat4 &mat) override |
| |
| GLuint | getUniformLocation (GLuint id, const std::string &name) override |
| |
| void | useShader (GLuint id) const override |
| |
| void | resetShader (GLuint id, bool loaded) const override |
| |
| void | attachUbo (GLuint id, int bindingpoint, const std::string &uboName) override |
| |
| void | clearScreen (bool color=true, bool depth=true) override |
| |
| void | bindQuadVAO () override |
| |
| void | drawFullscreenQuad () override |
| |
| void | bindDefaultFramebuffer () override |
| |
| void | drawVbo (const gVbo &vbo) override |
| |
| GLuint | createTextures () override |
| |
| void | bindTexture (GLuint texId) override |
| |
| void | bindTexture (GLuint texId, int textureSlotNo) override |
| |
| void | unbindTexture () override |
| |
| void | activateTexture (int textureSlotNo=0) override |
| |
| void | resetTexture () override |
| |
| void | deleteTexture (GLuint &texId) override |
| |
| void | texImage2D (GLenum target, GLint internalFormat, int width, int height, GLint format, GLint type, void *data) override |
| |
| void | setWrapping (GLenum target, GLint wrapS, GLint wrapT) override |
| |
| void | setWrapping (GLenum target, GLint wrapS, GLint wrapT, GLint wrapR) override |
| |
| void | setFiltering (GLenum target, GLint minFilter, GLint magFilter) override |
| |
| void | setWrappingAndFiltering (GLenum target, GLint wrapS, GLint wrapT, GLint minFilter, GLint magFilter) override |
| |
| void | setWrappingAndFiltering (GLenum target, GLint wrapS, GLint wrapT, GLint wrapR, GLint minFilter, GLint magFilter) override |
| |
| void | setSwizzleMask (GLint swizzleMask[4]) override |
| |
| void | readTexturePixels (unsigned char *inPixels, GLuint textureId, int width, int height, GLenum format) override |
| |
| void | readTexturePixelsHDR (float *inPixels, GLuint textureId, int width, int height, GLenum format) override |
| |
| void | generateMipMap () override |
| |
| void | bindSkyTexture (GLuint texId) override |
| |
| void | bindSkyTexture (GLuint texId, int textureSlot) override |
| |
| void | unbindSkyTexture () override |
| |
| void | unbindSkyTexture (int textureSlotNo) override |
| |
| void | generateSkyMipMap () override |
| |
| void | enableDepthTestEqual () override |
| |
| void | createQuad (GLuint &inQuadVAO, GLuint &inQuadVBO) override |
| |
| void | enableCubeMap () override |
| |
| void | pushMatrix () override |
| |
| void | popMatrix () override |
| |
| | gRenderer ()=default |
| |
| virtual | ~gRenderer () |
| |
| int | getWidth () |
| |
| int | getHeight () |
| |
| int | getScreenWidth () |
| |
| int | getScreenHeight () |
| |
| int | getUnitWidth () |
| |
| int | getUnitHeight () |
| |
| unsigned int | getFullscreenQuadVAO () const |
| |
| int | getCurrentResolution () |
| |
| int | getUnitResolution () |
| |
| void | drawGrid () |
| |
| void | drawGridYZ () |
| |
| void | drawGridXY () |
| |
| void | drawGridXZ () |
| |
| void | enableGrid () |
| |
| void | disableGrid () |
| |
| void | setGridEnableAxis (bool xy, bool yz, bool xz) |
| |
| void | setGridEnableXY (bool xy) |
| |
| void | setGridEnableYZ (bool yz) |
| |
| void | setGridEnableXZ (bool xz) |
| |
| void | setGridColorofAxisXZ (int r, int g, int b, int a) |
| |
| void | setGridColorofAxisYZ (int r, int g, int b, int a) |
| |
| void | setGridColorofAxisXY (int r, int g, int b, int a) |
| |
| void | setGridColorofAxisXZ (gColor *color) |
| |
| void | setGridColorofAxisYZ (gColor *color) |
| |
| void | setGridColorofAxisXY (gColor *color) |
| |
| void | setGridColorofAxisWireFrameXZ (int r, int g, int b, int a) |
| |
| void | setGridColorofAxisWireFrameYZ (int r, int g, int b, int a) |
| |
| void | setGridColorofAxisWireFrameXY (int r, int g, int b, int a) |
| |
| void | setGridColorofAxisWireFrameXZ (gColor *color) |
| |
| void | setGridColorofAxisWireFrameYZ (gColor *color) |
| |
| void | setGridColorofAxisWireFrameXY (gColor *color) |
| |
| bool | isGridEnabled () |
| |
| bool | isGridXYEnabled () |
| |
| bool | isGridYZEnabled () |
| |
| bool | isGridXZEnabled () |
| |
| void | setGridMaxLength (float length) |
| |
| float | getGridMaxLength () |
| |
| void | setGridLineInterval (float intervalvalue) |
| |
| float | getGridLineInterval () |
| |
| gGrid * | getGrid () const |
| |
| void | setGrid (gGrid *newgrid) |
| |
| void | setColor (int r, int g, int b, int a=255) |
| |
| void | setColor (float r, float g, float b, float a=1.0f) |
| |
| void | setColor (const gColor &color) |
| |
| void | setColor (gColor *color) |
| |
| gColor * | getColor () |
| |
| void | enableLighting () |
| |
| void | disableLighting () |
| |
| bool | isLightingEnabled () |
| |
| void | setLightingColor (int r, int g, int b, int a=255) |
| |
| void | setLightingColor (gColor *color) |
| |
| gColor * | getLightingColor () |
| |
| void | setLightingPosition (glm::vec3 lightingPosition) |
| |
| glm::vec3 | getLightingPosition () |
| |
| void | setGlobalAmbientColor (int r, int g, int b, int a=255) |
| |
| void | setGlobalAmbientColor (gColor color) |
| |
| gColor * | getGlobalAmbientColor () |
| |
| void | enableFog () |
| |
| void | disableFog () |
| |
| void | setFogNo (int no) |
| |
| void | setFogColor (float r, float g, float b) |
| |
| void | setFogColor (const gColor &color) |
| |
| void | setFogMode (int fogMode) |
| |
| void | setFogDensity (float value) |
| |
| void | setFogGradient (float value) |
| |
| void | setFogLinearStart (float value) |
| |
| void | setFogLinearEnd (float value) |
| |
| bool | isFogEnabled () |
| |
| int | getFogNo () const |
| |
| const gColor & | getFogColor () const |
| |
| int | getFogMode () const |
| |
| float | getFogDensity () const |
| |
| float | getFogGradient () const |
| |
| float | getFogLinearStart () const |
| |
| float | getFogLinearEnd () const |
| |
| void | addSceneLight (gLight *light) |
| |
| void | removeSceneLight (gLight *light) |
| |
| gLight * | getSceneLight (int lightNo) |
| |
| int | getSceneLightNum () |
| |
| void | removeAllSceneLights () |
| |
| void | updateLights () |
| |
| void | updateScene () |
| |
| bool | isSSAOEnabled () |
| |
| void | enableSSAO () |
| |
| void | disableSSAO () |
| |
| void | setSSAOBias (float value) |
| |
| float | getSSAOBias () |
| |
| void | setSSAORadius (float value) |
| |
| float | getSSAORadius () |
| |
| void | setSSAOStrength (float value) |
| |
| float | getSSAOStrength () |
| |
| void | setSSAODebug (bool enabled) |
| |
| bool | isSSAODebug () |
| |
| bool | isSSAOAllocated () |
| |
| void | beginSSAO () |
| |
| void | endSSAO () |
| |
| bool | isGammaCorrectionEnabled () |
| |
| void | enableGammaCorrection () |
| |
| void | disableGammaCorrection () |
| |
| bool | isHDREnabled () |
| |
| void | enableHDR () |
| |
| void | disableHDR () |
| |
| bool | isSoftShadowsEnabled () |
| |
| void | enableSoftShadows () |
| |
| void | disableSoftShadows () |
| |
| gShader * | getColorShader () |
| |
| gShader * | getTextureShader () |
| |
| gShader * | getFontShader () |
| |
| gShader * | getImageShader () |
| |
| gShader * | getSkyboxShader () |
| |
| gShader * | getShadowmapShader () |
| |
| gShader * | getPbrShader () |
| |
| gShader * | getEquirectangularShader () |
| |
| gShader * | getIrradianceShader () |
| |
| gShader * | getPrefilterShader () |
| |
| gShader * | getBrdfShader () |
| |
| gShader * | getFboShader () |
| |
| gShader * | getGridShader () |
| |
| void | setProjectionMatrix (glm::mat4 projectionMatrix) |
| |
| void | setProjectionMatrix2d (glm::mat4 projectionMatrix2d) |
| |
| void | setViewMatrix (glm::mat4 viewMatrix) |
| |
| void | setCameraPosition (glm::vec3 cameraPosition) |
| |
| void | setCamera (gCamera *camera) |
| |
| const glm::mat4 & | getProjectionMatrix () const |
| |
| const glm::mat4 & | getProjectionMatrix2d () const |
| |
| const glm::mat4 & | getViewMatrix () const |
| |
| const glm::vec3 & | getCameraPosition () const |
| |
| const gCamera * | getCamera () const |
| |
| void | backupMatrices () |
| |
| void | restoreMatrices () |
| |
| void | drawLine (float x1, float y1, float x2, float y2, float thickness=1.0f) |
| |
| void | drawLine (float x1, float y1, float z1, float x2, float y2, float z2, float thickness=1.0f) |
| |
| void | drawTriangle (float px, float py, float qx, float qy, float rx, float ry, bool is_filled=true) |
| |
| void | drawCircle (float xCenter, float yCenter, float radius, bool isFilled=false, float numberOfSides=64.0f) |
| |
| void | drawCross (float x, float y, float width, float height, float thickness, bool isFilled) |
| |
| void | drawArc (float xCenter, float yCenter, float radius, bool isFilled=true, int numberOfSides=60, float degree=360.0f, float rotate=360.0f) |
| |
| void | drawArrow (float x1, float y1, float length, float angle, float tipLength, float tipAngle) |
| |
| void | drawRectangle (float x, float y, float w, float h, bool isFilled=false) |
| |
| void | drawRoundedRectangle (float x, float y, float w, float h, int radius, bool isFilled) |
| |
| void | drawBox (float x, float y, float z, float w=1.0f, float h=1.0f, float d=1.0f, bool isFilled=true) |
| |
| void | drawBox (glm::mat4 transformationMatrix, bool isFilled=true) |
| |
| void | drawSphere (float xPos, float yPos, float zPos, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int xSegmentNum=64, int ySegmentNum=32, bool isFilled=true) |
| |
| void | drawCylinder (float x, float y, float z, int r, int h, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| void | drawCylinderOblique (float x, float y, float z, int r, int h, glm::vec2 shiftdistance, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| void | drawCylinderTrapezodial (float x, float y, float z, int r1, int r2, int h, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| void | drawCylinderObliqueTrapezodial (float x, float y, float z, int r1, int r2, int h, glm::vec2 shiftdistance, glm::vec3 scale=glm::vec3(1.0, 1.0, 1.0), int segmentnum=32, bool isFilled=true) |
| |
| void | drawCone (float x, float y, float z, int r, int h, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| void | drawConeOblique (float x, float y, float z, int r, int h, glm::vec2 shiftdistance, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| void | drawPyramid (float x, float y, float z, int r, int h, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int numberofsides=4, bool isFilled=true) |
| |
| void | drawPyramidOblique (float x, float y, float z, int r, int h, glm::vec2 shiftdistance, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int numberofsides=4, bool isFilled=true) |
| |
| void | drawTube (float x, float y, float z, int outerradius, int innerradious, int h, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| void | drawTubeOblique (float x, float y, float z, int outerradius, int innerradious, int h, glm::vec2 shiftdistance, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| void | drawTubeTrapezodial (float x, float y, float z, int topouterradius, int topinnerradious, int buttomouterradious, int buttominnerradious, int h, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| void | drawTubeObliqueTrapezodial (float x, float y, float z, int topouterradius, int topinnerradious, int buttomouterradious, int buttominnerradious, int h, glm::vec2 shiftdistance, glm::vec3 scale=glm::vec3(1.0f, 1.0f, 1.0f), int segmentnum=32, bool isFilled=true) |
| |
| | gObject () |
| |
| void | logi (std::string message) |
| |
| void | logd (std::string message) |
| |
| void | logw (std::string message) |
| |
| void | loge (std::string message) |
| |
| void | logi (std::string tag, std::string message) |
| |
| void | logd (std::string tag, std::string message) |
| |
| void | logw (std::string tag, std::string message) |
| |
| void | loge (std::string tag, std::string message) |
| |