|
GlistEngine
|
#include <gRenderer.h>


Classes | |
| struct | gSceneData |
| struct | gSceneFogData |
| struct | gSceneLightData |
| struct | gSceneLights |
Public Types | |
| enum | SceneDataFlags { ENABLE_SSAO = 0b0001 , ENABLE_FOG = 0b0010 , ENABLE_GAMMA = 0b0100 , ENABLE_HDR = 0b1000 , ENABLE_SOFT_SHADOWS = 0b10000 } |
Public Member Functions | |
| 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 () |
| virtual void | clear ()=0 |
| virtual void | clearColor (int r, int g, int b, int a=255)=0 |
| virtual void | clearColor (gColor color)=0 |
| 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 () |
| virtual void | enableDepthTest ()=0 |
| virtual void | enableDepthTest (int depthTestType)=0 |
| virtual void | setDepthTestFunc (int depthTestType)=0 |
| virtual void | disableDepthTest ()=0 |
| virtual bool | isDepthTestEnabled ()=0 |
| virtual int | getDepthTestType ()=0 |
| virtual void | enableAlphaBlending ()=0 |
| virtual void | disableAlphaBlending ()=0 |
| virtual bool | isAlphaBlendingEnabled ()=0 |
| virtual void | enableAlphaTest ()=0 |
| virtual void | disableAlphaTest ()=0 |
| virtual bool | isAlphaTestEnabled ()=0 |
| 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 () |
| virtual void | takeScreenshot (gImage &img)=0 |
| virtual void | takeScreenshot (gImage &img, int x, int y, int width, int height)=0 |
| virtual GLuint | genBuffers ()=0 |
| virtual void | deleteBuffer (GLuint &buffer)=0 |
| virtual void | bindBuffer (GLenum target, GLuint buffer)=0 |
| virtual void | unbindBuffer (GLenum target)=0 |
| virtual void | bufSubData (GLuint buffer, int offset, int size, const void *data)=0 |
| virtual void | setBufferData (GLuint buffer, const void *data, size_t size, int usage)=0 |
| virtual void | setBufferRange (int index, GLuint buffer, int offset, int size)=0 |
| virtual void | attachUbo (GLuint id, int bindingpoint, const std::string &uboName)=0 |
| virtual GLuint | createVAO ()=0 |
| virtual void | deleteVAO (GLuint &vao)=0 |
| virtual void | bindVAO (GLuint vao)=0 |
| virtual void | unbindVAO ()=0 |
| virtual void | setVertexBufferData (GLuint vbo, size_t size, const void *data, int usage)=0 |
| virtual void | setIndexBufferData (GLuint ebo, size_t size, const void *data, int usage)=0 |
| virtual void | drawArrays (int drawMode, int count)=0 |
| virtual void | drawElements (int drawMode, int count)=0 |
| virtual void | enableVertexAttrib (int index)=0 |
| virtual void | disableVertexAttrib (int index)=0 |
| virtual void | setVertexAttribPointer (int index, int size, int type, bool normalized, int stride, const void *pointer)=0 |
| virtual void | setViewport (int x, int y, int width, int height)=0 |
| virtual GLuint | createFramebuffer ()=0 |
| virtual void | deleteFramebuffer (GLuint &fbo)=0 |
| virtual void | bindFramebuffer (GLuint fbo)=0 |
| virtual void | checkFramebufferStatus ()=0 |
| virtual GLuint | createRenderbuffer ()=0 |
| virtual void | deleteRenderbuffer (GLuint &rbo)=0 |
| virtual void | bindRenderbuffer (GLuint rbo)=0 |
| virtual void | setRenderbufferStorage (GLenum format, int width, int height)=0 |
| virtual void | attachTextureToFramebuffer (GLenum attachment, GLenum textarget, GLuint texId, GLuint level=0)=0 |
| virtual void | attachRenderbufferToFramebuffer (GLenum attachment, GLuint rbo)=0 |
| virtual void | setDrawBufferNone ()=0 |
| virtual void | setReadBufferNone ()=0 |
| virtual void | createFullscreenQuad (GLuint &vao, GLuint &vbo)=0 |
| virtual void | deleteFullscreenQuad (GLuint &vao, GLuint *vbo)=0 |
| virtual GLuint | loadProgram (const char *vertexSource, const char *fragmentSource, const char *geometrySource)=0 |
| virtual void | checkCompileErrors (GLuint shader, const std::string &type)=0 |
| virtual void | setBool (GLuint uniformloc, bool value)=0 |
| virtual void | setInt (GLuint uniformloc, int value)=0 |
| virtual void | setUnsignedInt (GLuint uniformloc, unsigned int value)=0 |
| virtual void | setFloat (GLuint uniformloc, float value)=0 |
| virtual void | setVec2 (GLuint uniformloc, const glm::vec2 &value)=0 |
| virtual void | setVec2 (GLuint uniformloc, float x, float y)=0 |
| virtual void | setVec3 (GLuint uniformloc, const glm::vec3 &value)=0 |
| virtual void | setVec3 (GLuint uniformloc, float x, float y, float z)=0 |
| virtual void | setVec4 (GLuint uniformloc, const glm::vec4 &value)=0 |
| virtual void | setVec4 (GLuint uniformloc, float x, float y, float z, float w)=0 |
| virtual void | setMat2 (GLuint uniformloc, const glm::mat2 &mat)=0 |
| virtual void | setMat3 (GLuint uniformloc, const glm::mat3 &mat)=0 |
| virtual void | setMat4 (GLuint uniformloc, const glm::mat4 &mat)=0 |
| virtual GLuint | getUniformLocation (GLuint id, const std::string &name)=0 |
| virtual void | useShader (GLuint id) const =0 |
| virtual void | resetShader (GLuint id, bool loaded) const =0 |
| virtual void | clearScreen (bool color=true, bool depth=true)=0 |
| virtual void | bindQuadVAO ()=0 |
| virtual void | drawFullscreenQuad ()=0 |
| virtual void | bindDefaultFramebuffer ()=0 |
| virtual void | drawVbo (const gVbo &vbo)=0 |
| virtual GLuint | createTextures ()=0 |
| virtual void | bindTexture (GLuint texId)=0 |
| virtual void | bindTexture (GLuint texId, int textureSlotNo)=0 |
| virtual void | unbindTexture ()=0 |
| virtual void | activateTexture (int textureSlotNo=0)=0 |
| virtual void | resetTexture ()=0 |
| virtual void | deleteTexture (GLuint &texId)=0 |
| virtual void | texImage2D (GLenum target, GLint internalFormat, int width, int height, GLint format, GLint type, void *data)=0 |
| virtual void | setWrapping (GLenum target, GLint wrapS, GLint wrapT)=0 |
| virtual void | setWrapping (GLenum target, GLint wrapS, GLint wrapT, GLint wrapR)=0 |
| virtual void | setFiltering (GLenum target, GLint minFilter, GLint magFilter)=0 |
| virtual void | setWrappingAndFiltering (GLenum target, GLint wrapS, GLint wrapT, GLint minFilter, GLint magFilter)=0 |
| virtual void | setWrappingAndFiltering (GLenum target, GLint wrapS, GLint wrapT, GLint wrapR, GLint minFilter, GLint magFilter)=0 |
| virtual void | setSwizzleMask (GLint swizzleMask[4])=0 |
| virtual void | readTexturePixels (unsigned char *inPixels, GLuint textureId, int width, int height, GLenum format)=0 |
| virtual void | readTexturePixelsHDR (float *inPixels, GLuint textureId, int width, int height, GLenum format)=0 |
| virtual void | generateMipMap ()=0 |
| virtual void | bindSkyTexture (GLuint texId)=0 |
| virtual void | bindSkyTexture (GLuint texId, int textureSlot)=0 |
| virtual void | unbindSkyTexture ()=0 |
| virtual void | unbindSkyTexture (int textureSlotNo)=0 |
| virtual void | generateSkyMipMap ()=0 |
| virtual void | enableDepthTestEqual ()=0 |
| virtual void | createQuad (GLuint &inQuadVAO, GLuint &inQuadVBO)=0 |
| virtual void | enableCubeMap ()=0 |
| virtual void | pushMatrix ()=0 |
| virtual void | popMatrix ()=0 |
| 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) |
Public Member Functions inherited from gObject | |
| 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) |
Static Public Member Functions | |
| static void | setScreenSize (int screenWidth, int screenHeight) |
| static void | setUnitScreenSize (int unitWidth, int unitHeight) |
| static void | setScreenScaling (int screenScaling) |
| static int | getScreenScaling () |
| static void | setCurrentResolution (int resolution) |
| static void | setCurrentResolution (int screenWidth, int screenHeight) |
| static void | setUnitResolution (int resolution) |
| static void | setUnitResolution (int screenWidth, int screenHeight) |
| static int | getResolution (int screenWidth, int screenHeight) |
| static float | getScaleMultiplier () |
| static int | scaleX (int x) |
| static int | scaleY (int y) |
| static int | unscaleX (int x) |
| static int | unscaleY (int y) |
Static Public Member Functions inherited from gObject | |
| static std::string | gGetAppDir () |
| static std::string | gGetAssetsDir () |
| static void | gSetAssetsDir (std::string assetsDir) |
| static std::string | gGetFilesDir () |
| static std::string | gGetImagesDir () |
| static std::string | gGetFontsDir () |
| static std::string | gGetModelsDir () |
| static std::string | gGetTexturesDir () |
| static std::string | gGetShadersDir () |
| static std::string | gGetSoundsDir () |
| static std::string | gGetDatabasesDir () |
| static std::string | gGetVideosDir () |
| static void | setCurrentResolution (int scalingNo, int currentResolutionNo) |
Static Public Attributes | |
| static const int | SCREENSCALING_NONE |
| static const int | SCREENSCALING_MIPMAP |
| static const int | SCREENSCALING_AUTO |
| static const int | DEPTHTESTTYPE_LESS |
| static const int | DEPTHTESTTYPE_ALWAYS |
| static const int | FOGMODE_LINEAR |
| static const int | FOGMODE_EXP |
Static Public Attributes inherited from gObject | |
| static const int | LOGLEVEL_SILENT |
| static const int | LOGLEVEL_DEBUG |
| static const int | LOGLEVEL_INFO |
| static const int | LOGLEVEL_WARNING |
| static const int | LOGLEVEL_ERROR |
Protected Member Functions | |
| void | initSSAOResources () |
| void | cleanupSSAOResources () |
| virtual void | init () |
| virtual void | cleanup () |
| virtual void | updatePackUnpackAlignment (int i)=0 |
Static Protected Member Functions | |
| static const std::string & | getShaderSrcGridVertex () |
| static const std::string & | getShaderSrcGridFragment () |
| static const std::string & | getShaderSrcColorVertex () |
| static const std::string & | getShaderSrcColorFragment () |
| static const std::string & | getShaderSrcTextureVertex () |
| static const std::string & | getShaderSrcTextureFragment () |
| static const std::string & | getShaderSrcImageVertex () |
| static const std::string & | getShaderSrcImageFragment () |
| static const std::string & | getShaderSrcFontVertex () |
| static const std::string & | getShaderSrcFontFragment () |
| static const std::string & | getShaderSrcSkyboxVertex () |
| static const std::string & | getShaderSrcSkyboxFragment () |
| static const std::string & | getShaderSrcShadowmapVertex () |
| static const std::string & | getShaderSrcShadowmapFragment () |
| static const std::string & | getShaderSrcPbrVertex () |
| static const std::string & | getShaderSrcPbrFragment () |
| static const std::string & | getShaderSrcCubemapVertex () |
| static const std::string & | getShaderSrcEquirectangularFragment () |
| static const std::string & | getShaderSrcIrradianceFragment () |
| static const std::string & | getShaderSrcPrefilterFragment () |
| static const std::string & | getShaderSrcBrdfVertex () |
| static const std::string & | getShaderSrcBrdfFragment () |
| static const std::string & | getShaderSrcFboVertex () |
| static const std::string & | getShaderSrcFboFragment () |
| static const std::string & | getShaderSrcSSAOVertex () |
| static const std::string & | getShaderSrcSSAOFragment () |
| static const std::string & | getShaderSrcSSAOBlurFragment () |
Static Protected Attributes | |
| static int | width |
| static int | height |
| static int | unitwidth |
| static int | unitheight |
| static int | screenscaling |
| static int | currentresolution |
| static int | unitresolution |
Static Protected Attributes inherited from gObject | |
| static int | renderpassnum |
| static int | renderpassno |
| static int | releasescaling |
| static int | releaseresolution |
Friends | |
| class | gRenderObject |
| class | gAppManager |
|
default |
|
virtual |
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::addSceneLight | ( | gLight * | light | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::backupMatrices | ( | ) |
| void gRenderer::beginSSAO | ( | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
protectedvirtual |
|
protected |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::disableFog | ( | ) |
| void gRenderer::disableGammaCorrection | ( | ) |
| void gRenderer::disableGrid | ( | ) |
| void gRenderer::disableHDR | ( | ) |
| void gRenderer::disableLighting | ( | ) |
| void gRenderer::disableSoftShadows | ( | ) |
| void gRenderer::disableSSAO | ( | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::drawArc | ( | float | xCenter, |
| float | yCenter, | ||
| float | radius, | ||
| bool | isFilled = true, |
||
| int | numberOfSides = 60, |
||
| float | degree = 360.0f, |
||
| float | rotate = 360.0f |
||
| ) |
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::drawArrow | ( | float | x1, |
| float | y1, | ||
| float | length, | ||
| float | angle, | ||
| float | tipLength, | ||
| float | tipAngle | ||
| ) |
| void gRenderer::drawBox | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w = 1.0f, |
||
| float | h = 1.0f, |
||
| float | d = 1.0f, |
||
| bool | isFilled = true |
||
| ) |
| void gRenderer::drawBox | ( | glm::mat4 | transformationMatrix, |
| bool | isFilled = true |
||
| ) |
| void gRenderer::drawCircle | ( | float | xCenter, |
| float | yCenter, | ||
| float | radius, | ||
| bool | isFilled = false, |
||
| float | numberOfSides = 64.0f |
||
| ) |
| void gRenderer::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 gRenderer::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 gRenderer::drawCross | ( | float | x, |
| float | y, | ||
| float | width, | ||
| float | height, | ||
| float | thickness, | ||
| bool | isFilled | ||
| ) |
| void gRenderer::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 gRenderer::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 gRenderer::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 gRenderer::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 |
||
| ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::drawGrid | ( | ) |
| void gRenderer::drawGridXY | ( | ) |
| void gRenderer::drawGridXZ | ( | ) |
| void gRenderer::drawGridYZ | ( | ) |
| void gRenderer::drawLine | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | thickness = 1.0f |
||
| ) |
| void gRenderer::drawLine | ( | float | x1, |
| float | y1, | ||
| float | z1, | ||
| float | x2, | ||
| float | y2, | ||
| float | z2, | ||
| float | thickness = 1.0f |
||
| ) |
| void gRenderer::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 gRenderer::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 gRenderer::drawRectangle | ( | float | x, |
| float | y, | ||
| float | w, | ||
| float | h, | ||
| bool | isFilled = false |
||
| ) |
| void gRenderer::drawRoundedRectangle | ( | float | x, |
| float | y, | ||
| float | w, | ||
| float | h, | ||
| int | radius, | ||
| bool | isFilled | ||
| ) |
| void gRenderer::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 gRenderer::drawTriangle | ( | float | px, |
| float | py, | ||
| float | qx, | ||
| float | qy, | ||
| float | rx, | ||
| float | ry, | ||
| bool | is_filled = true |
||
| ) |
| void gRenderer::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 gRenderer::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 gRenderer::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 |
||
| ) |
| void gRenderer::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 |
||
| ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::enableFog | ( | ) |
| void gRenderer::enableGammaCorrection | ( | ) |
| void gRenderer::enableGrid | ( | ) |
| void gRenderer::enableHDR | ( | ) |
| void gRenderer::enableLighting | ( | ) |
| void gRenderer::enableSoftShadows | ( | ) |
| void gRenderer::enableSSAO | ( | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::endSSAO | ( | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| gShader * gRenderer::getBrdfShader | ( | ) |
| const gCamera * gRenderer::getCamera | ( | ) | const |
| const glm::vec3 & gRenderer::getCameraPosition | ( | ) | const |
| gColor * gRenderer::getColor | ( | ) |
| gShader * gRenderer::getColorShader | ( | ) |
| int gRenderer::getCurrentResolution | ( | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
| gShader * gRenderer::getEquirectangularShader | ( | ) |
| gShader * gRenderer::getFboShader | ( | ) |
| const gColor & gRenderer::getFogColor | ( | ) | const |
| float gRenderer::getFogDensity | ( | ) | const |
| float gRenderer::getFogGradient | ( | ) | const |
| float gRenderer::getFogLinearEnd | ( | ) | const |
| float gRenderer::getFogLinearStart | ( | ) | const |
| int gRenderer::getFogMode | ( | ) | const |
| int gRenderer::getFogNo | ( | ) | const |
| gShader * gRenderer::getFontShader | ( | ) |
| unsigned int gRenderer::getFullscreenQuadVAO | ( | ) | const |
| gColor * gRenderer::getGlobalAmbientColor | ( | ) |
| gGrid * gRenderer::getGrid | ( | ) | const |
| float gRenderer::getGridLineInterval | ( | ) |
| float gRenderer::getGridMaxLength | ( | ) |
| gShader * gRenderer::getGridShader | ( | ) |
| int gRenderer::getHeight | ( | ) |
| gShader * gRenderer::getImageShader | ( | ) |
| gShader * gRenderer::getIrradianceShader | ( | ) |
| gColor * gRenderer::getLightingColor | ( | ) |
| glm::vec3 gRenderer::getLightingPosition | ( | ) |
| gShader * gRenderer::getPbrShader | ( | ) |
| gShader * gRenderer::getPrefilterShader | ( | ) |
| const glm::mat4 & gRenderer::getProjectionMatrix | ( | ) | const |
| const glm::mat4 & gRenderer::getProjectionMatrix2d | ( | ) | const |
|
static |
|
static |
| gLight * gRenderer::getSceneLight | ( | int | lightNo | ) |
| int gRenderer::getSceneLightNum | ( | ) |
| int gRenderer::getScreenHeight | ( | ) |
|
static |
| int gRenderer::getScreenWidth | ( | ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
| gShader * gRenderer::getShadowmapShader | ( | ) |
| gShader * gRenderer::getSkyboxShader | ( | ) |
| float gRenderer::getSSAOBias | ( | ) |
| float gRenderer::getSSAORadius | ( | ) |
| float gRenderer::getSSAOStrength | ( | ) |
| gShader * gRenderer::getTextureShader | ( | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
| int gRenderer::getUnitHeight | ( | ) |
| int gRenderer::getUnitResolution | ( | ) |
| int gRenderer::getUnitWidth | ( | ) |
| const glm::mat4 & gRenderer::getViewMatrix | ( | ) | const |
| int gRenderer::getWidth | ( | ) |
|
protectedvirtual |
Reimplemented in gGLRenderEngine.
|
protected |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| bool gRenderer::isFogEnabled | ( | ) |
| bool gRenderer::isGammaCorrectionEnabled | ( | ) |
| bool gRenderer::isGridEnabled | ( | ) |
| bool gRenderer::isGridXYEnabled | ( | ) |
| bool gRenderer::isGridXZEnabled | ( | ) |
| bool gRenderer::isGridYZEnabled | ( | ) |
| bool gRenderer::isHDREnabled | ( | ) |
| bool gRenderer::isLightingEnabled | ( | ) |
| bool gRenderer::isSoftShadowsEnabled | ( | ) |
| bool gRenderer::isSSAOAllocated | ( | ) |
| bool gRenderer::isSSAODebug | ( | ) |
| bool gRenderer::isSSAOEnabled | ( | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::removeAllSceneLights | ( | ) |
| void gRenderer::removeSceneLight | ( | gLight * | light | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::restoreMatrices | ( | ) |
|
static |
|
static |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::setCamera | ( | gCamera * | camera | ) |
| void gRenderer::setCameraPosition | ( | glm::vec3 | cameraPosition | ) |
| void gRenderer::setColor | ( | const gColor & | color | ) |
| void gRenderer::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a = 1.0f |
||
| ) |
| void gRenderer::setColor | ( | gColor * | color | ) |
| void gRenderer::setColor | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a = 255 |
||
| ) |
|
static |
|
static |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::setFogColor | ( | const gColor & | color | ) |
| void gRenderer::setFogColor | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) |
| void gRenderer::setFogDensity | ( | float | value | ) |
| void gRenderer::setFogGradient | ( | float | value | ) |
| void gRenderer::setFogLinearEnd | ( | float | value | ) |
| void gRenderer::setFogLinearStart | ( | float | value | ) |
| void gRenderer::setFogMode | ( | int | fogMode | ) |
| void gRenderer::setFogNo | ( | int | no | ) |
|
inline |
| void gRenderer::setGlobalAmbientColor | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a = 255 |
||
| ) |
| void gRenderer::setGrid | ( | gGrid * | newgrid | ) |
| void gRenderer::setGridColorofAxisWireFrameXY | ( | gColor * | color | ) |
| void gRenderer::setGridColorofAxisWireFrameXY | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a | ||
| ) |
| void gRenderer::setGridColorofAxisWireFrameXZ | ( | gColor * | color | ) |
| void gRenderer::setGridColorofAxisWireFrameXZ | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a | ||
| ) |
| void gRenderer::setGridColorofAxisWireFrameYZ | ( | gColor * | color | ) |
| void gRenderer::setGridColorofAxisWireFrameYZ | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a | ||
| ) |
| void gRenderer::setGridColorofAxisXY | ( | gColor * | color | ) |
| void gRenderer::setGridColorofAxisXY | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a | ||
| ) |
| void gRenderer::setGridColorofAxisXZ | ( | gColor * | color | ) |
| void gRenderer::setGridColorofAxisXZ | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a | ||
| ) |
| void gRenderer::setGridColorofAxisYZ | ( | gColor * | color | ) |
| void gRenderer::setGridColorofAxisYZ | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a | ||
| ) |
| void gRenderer::setGridEnableAxis | ( | bool | xy, |
| bool | yz, | ||
| bool | xz | ||
| ) |
| void gRenderer::setGridEnableXY | ( | bool | xy | ) |
| void gRenderer::setGridEnableXZ | ( | bool | xz | ) |
| void gRenderer::setGridEnableYZ | ( | bool | yz | ) |
| void gRenderer::setGridLineInterval | ( | float | intervalvalue | ) |
| void gRenderer::setGridMaxLength | ( | float | length | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
inline |
| void gRenderer::setLightingColor | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a = 255 |
||
| ) |
| void gRenderer::setLightingPosition | ( | glm::vec3 | lightingPosition | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::setProjectionMatrix | ( | glm::mat4 | projectionMatrix | ) |
| void gRenderer::setProjectionMatrix2d | ( | glm::mat4 | projectionMatrix2d | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
static |
|
static |
| void gRenderer::setSSAOBias | ( | float | value | ) |
| void gRenderer::setSSAODebug | ( | bool | enabled | ) |
| void gRenderer::setSSAORadius | ( | float | value | ) |
| void gRenderer::setSSAOStrength | ( | float | value | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
static |
|
static |
|
static |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
| void gRenderer::setViewMatrix | ( | glm::mat4 | viewMatrix | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
pure virtual |
Implemented in gGLRenderEngine.
|
static |
|
static |
| void gRenderer::updateLights | ( | ) |
|
protectedpure virtual |
| void gRenderer::updateScene | ( | ) |
|
pure virtual |
Implemented in gGLRenderEngine.
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |