GlistEngine
Loading...
Searching...
No Matches
gRenderer Class Referenceabstract

#include <gRenderer.h>

Inheritance diagram for gRenderer:
Collaboration diagram for gRenderer:

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 ()
 
gGridgetGrid () 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)
 
gColorgetColor ()
 
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)
 
gColorgetLightingColor ()
 
void setLightingPosition (glm::vec3 lightingPosition)
 
glm::vec3 getLightingPosition ()
 
void setGlobalAmbientColor (int r, int g, int b, int a=255)
 
void setGlobalAmbientColor (gColor color)
 
gColorgetGlobalAmbientColor ()
 
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 gColorgetFogColor () const
 
int getFogMode () const
 
float getFogDensity () const
 
float getFogGradient () const
 
float getFogLinearStart () const
 
float getFogLinearEnd () const
 
void addSceneLight (gLight *light)
 
void removeSceneLight (gLight *light)
 
gLightgetSceneLight (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 ()
 
gShadergetColorShader ()
 
gShadergetTextureShader ()
 
gShadergetFontShader ()
 
gShadergetImageShader ()
 
gShadergetSkyboxShader ()
 
gShadergetShadowmapShader ()
 
gShadergetPbrShader ()
 
gShadergetEquirectangularShader ()
 
gShadergetIrradianceShader ()
 
gShadergetPrefilterShader ()
 
gShadergetBrdfShader ()
 
gShadergetFboShader ()
 
gShadergetGridShader ()
 
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 gCameragetCamera () 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 ()
 

Protected Attributes

gColorrendercolor
 
bool isfogenabled
 
int fogno
 
gColor fogcolor
 
float fogdensity
 
float foggradient
 
int fogmode
 
float foglinearstart
 
float foglinearend
 
std::deque< gLight * > scenelights
 
gUbo< gSceneLights > * lightsubo
 
gUbo< gSceneData > * sceneubo
 
bool islightingenabled
 
glm::vec3 lightingposition
 
gColor lightingcolor
 
gColor globalambientcolor
 
bool isglobalambientcolorchanged
 
bool isdepthtestenabled
 
int depthtesttype
 
unsigned int depthtesttypeid [2]
 
bool isalphablendingenabled
 
bool isalphatestenabled
 
bool isssaoenabled
 
float ssaobias
 
float ssaoradius
 
float ssaostrength
 
bool isssaoallocated
 
bool isssaodebug
 
gFbossaofbo
 
gFbossaoresultfbo
 
gShaderssaoshader
 
gShaderssaoblurshader
 
unsigned int ssaonoisetexture
 
std::vector< glm::vec3 > ssaokernel
 
int ssaorealdefaultfbo
 
bool isssaorendering
 
bool isgammacorrectionenabled
 
bool ishdrenabled
 
bool issoftshadowsenabled
 
gShadercolorshader
 
gShadertextureshader
 
gShaderfontshader
 
gShaderimageshader
 
gShaderskyboxshader
 
gShadershadowmapshader
 
gShaderpbrshader
 
gShaderequirectangularshader
 
gShaderirradianceshader
 
gShaderprefiltershader
 
gShaderbrdfshader
 
gShaderfboshader
 
gShadergridshader
 
glm::mat4 projectionmatrix
 
glm::mat4 projectionmatrixold
 
glm::mat4 projectionmatrix2d
 
glm::mat4 viewmatrix
 
glm::mat4 viewmatrixold
 
glm::vec3 cameraposition
 
gCameracamera
 
gGridgrid
 
gGridoriginalgrid
 
unsigned int fullscreenquadvao
 
unsigned int fullscreenquadvbo
 
std::unique_ptr< gLinelinemesh
 
std::unique_ptr< gLinelinemesh2
 
std::unique_ptr< gLinelinemesh3
 
std::unique_ptr< gTriangletrianglemesh
 
std::unique_ptr< gCirclecirclemesh
 
std::unique_ptr< gCrosscrossmesh
 
std::unique_ptr< gArcarcmesh
 
std::unique_ptr< gRectanglerectanglemesh
 
std::unique_ptr< gRoundedRectangleroundedrectanglemesh
 
std::unique_ptr< gBoxboxmesh
 

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
 

Member Enumeration Documentation

◆ SceneDataFlags

Enumerator
ENABLE_SSAO 
ENABLE_FOG 
ENABLE_GAMMA 
ENABLE_HDR 
ENABLE_SOFT_SHADOWS 

Constructor & Destructor Documentation

◆ gRenderer()

gRenderer::gRenderer ( )
default

◆ ~gRenderer()

virtual gRenderer::~gRenderer ( )
virtual

Member Function Documentation

◆ activateTexture()

virtual void gRenderer::activateTexture ( int  textureSlotNo = 0)
pure virtual

Implemented in gGLRenderEngine.

◆ addSceneLight()

void gRenderer::addSceneLight ( gLight light)

◆ attachRenderbufferToFramebuffer()

virtual void gRenderer::attachRenderbufferToFramebuffer ( GLenum  attachment,
GLuint  rbo 
)
pure virtual

Implemented in gGLRenderEngine.

◆ attachTextureToFramebuffer()

virtual void gRenderer::attachTextureToFramebuffer ( GLenum  attachment,
GLenum  textarget,
GLuint  texId,
GLuint  level = 0 
)
pure virtual

Implemented in gGLRenderEngine.

◆ attachUbo()

virtual void gRenderer::attachUbo ( GLuint  id,
int  bindingpoint,
const std::string &  uboName 
)
pure virtual

Implemented in gGLRenderEngine.

◆ backupMatrices()

void gRenderer::backupMatrices ( )

◆ beginSSAO()

void gRenderer::beginSSAO ( )

◆ bindBuffer()

virtual void gRenderer::bindBuffer ( GLenum  target,
GLuint  buffer 
)
pure virtual

Implemented in gGLRenderEngine.

◆ bindDefaultFramebuffer()

virtual void gRenderer::bindDefaultFramebuffer ( )
pure virtual

Implemented in gGLRenderEngine.

◆ bindFramebuffer()

virtual void gRenderer::bindFramebuffer ( GLuint  fbo)
pure virtual

Implemented in gGLRenderEngine.

◆ bindQuadVAO()

virtual void gRenderer::bindQuadVAO ( )
pure virtual

Implemented in gGLRenderEngine.

◆ bindRenderbuffer()

virtual void gRenderer::bindRenderbuffer ( GLuint  rbo)
pure virtual

Implemented in gGLRenderEngine.

◆ bindSkyTexture() [1/2]

virtual void gRenderer::bindSkyTexture ( GLuint  texId)
pure virtual

Implemented in gGLRenderEngine.

◆ bindSkyTexture() [2/2]

virtual void gRenderer::bindSkyTexture ( GLuint  texId,
int  textureSlot 
)
pure virtual

Implemented in gGLRenderEngine.

◆ bindTexture() [1/2]

virtual void gRenderer::bindTexture ( GLuint  texId)
pure virtual

Implemented in gGLRenderEngine.

◆ bindTexture() [2/2]

virtual void gRenderer::bindTexture ( GLuint  texId,
int  textureSlotNo 
)
pure virtual

Implemented in gGLRenderEngine.

◆ bindVAO()

virtual void gRenderer::bindVAO ( GLuint  vao)
pure virtual

Implemented in gGLRenderEngine.

◆ bufSubData()

virtual void gRenderer::bufSubData ( GLuint  buffer,
int  offset,
int  size,
const void *  data 
)
pure virtual

Implemented in gGLRenderEngine.

◆ checkCompileErrors()

virtual void gRenderer::checkCompileErrors ( GLuint  shader,
const std::string &  type 
)
pure virtual

Implemented in gGLRenderEngine.

◆ checkFramebufferStatus()

virtual void gRenderer::checkFramebufferStatus ( )
pure virtual

Implemented in gGLRenderEngine.

◆ cleanup()

virtual void gRenderer::cleanup ( )
protectedvirtual

◆ cleanupSSAOResources()

void gRenderer::cleanupSSAOResources ( )
protected

◆ clear()

virtual void gRenderer::clear ( )
pure virtual

Implemented in gGLRenderEngine.

◆ clearColor() [1/2]

virtual void gRenderer::clearColor ( gColor  color)
pure virtual

Implemented in gGLRenderEngine.

◆ clearColor() [2/2]

virtual void gRenderer::clearColor ( int  r,
int  g,
int  b,
int  a = 255 
)
pure virtual

Implemented in gGLRenderEngine.

◆ clearScreen()

virtual void gRenderer::clearScreen ( bool  color = true,
bool  depth = true 
)
pure virtual

Implemented in gGLRenderEngine.

◆ createFramebuffer()

virtual GLuint gRenderer::createFramebuffer ( )
pure virtual

Implemented in gGLRenderEngine.

◆ createFullscreenQuad()

virtual void gRenderer::createFullscreenQuad ( GLuint &  vao,
GLuint &  vbo 
)
pure virtual

Implemented in gGLRenderEngine.

◆ createQuad()

virtual void gRenderer::createQuad ( GLuint &  inQuadVAO,
GLuint &  inQuadVBO 
)
pure virtual

Implemented in gGLRenderEngine.

◆ createRenderbuffer()

virtual GLuint gRenderer::createRenderbuffer ( )
pure virtual

Implemented in gGLRenderEngine.

◆ createTextures()

virtual GLuint gRenderer::createTextures ( )
pure virtual

Implemented in gGLRenderEngine.

◆ createVAO()

virtual GLuint gRenderer::createVAO ( )
pure virtual

Implemented in gGLRenderEngine.

◆ deleteBuffer()

virtual void gRenderer::deleteBuffer ( GLuint &  buffer)
pure virtual

Implemented in gGLRenderEngine.

◆ deleteFramebuffer()

virtual void gRenderer::deleteFramebuffer ( GLuint &  fbo)
pure virtual

Implemented in gGLRenderEngine.

◆ deleteFullscreenQuad()

virtual void gRenderer::deleteFullscreenQuad ( GLuint &  vao,
GLuint *  vbo 
)
pure virtual

Implemented in gGLRenderEngine.

◆ deleteRenderbuffer()

virtual void gRenderer::deleteRenderbuffer ( GLuint &  rbo)
pure virtual

Implemented in gGLRenderEngine.

◆ deleteTexture()

virtual void gRenderer::deleteTexture ( GLuint &  texId)
pure virtual

Implemented in gGLRenderEngine.

◆ deleteVAO()

virtual void gRenderer::deleteVAO ( GLuint &  vao)
pure virtual

Implemented in gGLRenderEngine.

◆ disableAlphaBlending()

virtual void gRenderer::disableAlphaBlending ( )
pure virtual

Implemented in gGLRenderEngine.

◆ disableAlphaTest()

virtual void gRenderer::disableAlphaTest ( )
pure virtual

Implemented in gGLRenderEngine.

◆ disableDepthTest()

virtual void gRenderer::disableDepthTest ( )
pure virtual

Implemented in gGLRenderEngine.

◆ disableFog()

void gRenderer::disableFog ( )

◆ disableGammaCorrection()

void gRenderer::disableGammaCorrection ( )

◆ disableGrid()

void gRenderer::disableGrid ( )

◆ disableHDR()

void gRenderer::disableHDR ( )

◆ disableLighting()

void gRenderer::disableLighting ( )

◆ disableSoftShadows()

void gRenderer::disableSoftShadows ( )

◆ disableSSAO()

void gRenderer::disableSSAO ( )

◆ disableVertexAttrib()

virtual void gRenderer::disableVertexAttrib ( int  index)
pure virtual

Implemented in gGLRenderEngine.

◆ drawArc()

void gRenderer::drawArc ( float  xCenter,
float  yCenter,
float  radius,
bool  isFilled = true,
int  numberOfSides = 60,
float  degree = 360.0f,
float  rotate = 360.0f 
)

◆ drawArrays()

virtual void gRenderer::drawArrays ( int  drawMode,
int  count 
)
pure virtual

Implemented in gGLRenderEngine.

◆ drawArrow()

void gRenderer::drawArrow ( float  x1,
float  y1,
float  length,
float  angle,
float  tipLength,
float  tipAngle 
)

◆ drawBox() [1/2]

void gRenderer::drawBox ( float  x,
float  y,
float  z,
float  w = 1.0f,
float  h = 1.0f,
float  d = 1.0f,
bool  isFilled = true 
)

◆ drawBox() [2/2]

void gRenderer::drawBox ( glm::mat4  transformationMatrix,
bool  isFilled = true 
)

◆ drawCircle()

void gRenderer::drawCircle ( float  xCenter,
float  yCenter,
float  radius,
bool  isFilled = false,
float  numberOfSides = 64.0f 
)

◆ drawCone()

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 
)

◆ drawConeOblique()

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 
)

◆ drawCross()

void gRenderer::drawCross ( float  x,
float  y,
float  width,
float  height,
float  thickness,
bool  isFilled 
)

◆ drawCylinder()

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 
)

◆ drawCylinderOblique()

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 
)

◆ drawCylinderObliqueTrapezodial()

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 
)

◆ drawCylinderTrapezodial()

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 
)

◆ drawElements()

virtual void gRenderer::drawElements ( int  drawMode,
int  count 
)
pure virtual

Implemented in gGLRenderEngine.

◆ drawFullscreenQuad()

virtual void gRenderer::drawFullscreenQuad ( )
pure virtual

Implemented in gGLRenderEngine.

◆ drawGrid()

void gRenderer::drawGrid ( )

◆ drawGridXY()

void gRenderer::drawGridXY ( )

◆ drawGridXZ()

void gRenderer::drawGridXZ ( )

◆ drawGridYZ()

void gRenderer::drawGridYZ ( )

◆ drawLine() [1/2]

void gRenderer::drawLine ( float  x1,
float  y1,
float  x2,
float  y2,
float  thickness = 1.0f 
)

◆ drawLine() [2/2]

void gRenderer::drawLine ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
float  thickness = 1.0f 
)

◆ drawPyramid()

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 
)

◆ drawPyramidOblique()

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 
)

◆ drawRectangle()

void gRenderer::drawRectangle ( float  x,
float  y,
float  w,
float  h,
bool  isFilled = false 
)

◆ drawRoundedRectangle()

void gRenderer::drawRoundedRectangle ( float  x,
float  y,
float  w,
float  h,
int  radius,
bool  isFilled 
)

◆ drawSphere()

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 
)

◆ drawTriangle()

void gRenderer::drawTriangle ( float  px,
float  py,
float  qx,
float  qy,
float  rx,
float  ry,
bool  is_filled = true 
)

◆ drawTube()

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 
)

◆ drawTubeOblique()

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 
)

◆ drawTubeObliqueTrapezodial()

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 
)

◆ drawTubeTrapezodial()

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 
)

◆ drawVbo()

virtual void gRenderer::drawVbo ( const gVbo vbo)
pure virtual

Implemented in gGLRenderEngine.

◆ enableAlphaBlending()

virtual void gRenderer::enableAlphaBlending ( )
pure virtual

Implemented in gGLRenderEngine.

◆ enableAlphaTest()

virtual void gRenderer::enableAlphaTest ( )
pure virtual

Implemented in gGLRenderEngine.

◆ enableCubeMap()

virtual void gRenderer::enableCubeMap ( )
pure virtual

Implemented in gGLRenderEngine.

◆ enableDepthTest() [1/2]

virtual void gRenderer::enableDepthTest ( )
pure virtual

Implemented in gGLRenderEngine.

◆ enableDepthTest() [2/2]

virtual void gRenderer::enableDepthTest ( int  depthTestType)
pure virtual

Implemented in gGLRenderEngine.

◆ enableDepthTestEqual()

virtual void gRenderer::enableDepthTestEqual ( )
pure virtual

Implemented in gGLRenderEngine.

◆ enableFog()

void gRenderer::enableFog ( )

◆ enableGammaCorrection()

void gRenderer::enableGammaCorrection ( )

◆ enableGrid()

void gRenderer::enableGrid ( )

◆ enableHDR()

void gRenderer::enableHDR ( )

◆ enableLighting()

void gRenderer::enableLighting ( )

◆ enableSoftShadows()

void gRenderer::enableSoftShadows ( )

◆ enableSSAO()

void gRenderer::enableSSAO ( )

◆ enableVertexAttrib()

virtual void gRenderer::enableVertexAttrib ( int  index)
pure virtual

Implemented in gGLRenderEngine.

◆ endSSAO()

void gRenderer::endSSAO ( )

◆ genBuffers()

virtual GLuint gRenderer::genBuffers ( )
pure virtual

Implemented in gGLRenderEngine.

◆ generateMipMap()

virtual void gRenderer::generateMipMap ( )
pure virtual

Implemented in gGLRenderEngine.

◆ generateSkyMipMap()

virtual void gRenderer::generateSkyMipMap ( )
pure virtual

Implemented in gGLRenderEngine.

◆ getBrdfShader()

gShader * gRenderer::getBrdfShader ( )

◆ getCamera()

const gCamera * gRenderer::getCamera ( ) const

◆ getCameraPosition()

const glm::vec3 & gRenderer::getCameraPosition ( ) const

◆ getColor()

gColor * gRenderer::getColor ( )

◆ getColorShader()

gShader * gRenderer::getColorShader ( )

◆ getCurrentResolution()

int gRenderer::getCurrentResolution ( )

◆ getDepthTestType()

virtual int gRenderer::getDepthTestType ( )
pure virtual

Implemented in gGLRenderEngine.

◆ getEquirectangularShader()

gShader * gRenderer::getEquirectangularShader ( )

◆ getFboShader()

gShader * gRenderer::getFboShader ( )

◆ getFogColor()

const gColor & gRenderer::getFogColor ( ) const

◆ getFogDensity()

float gRenderer::getFogDensity ( ) const

◆ getFogGradient()

float gRenderer::getFogGradient ( ) const

◆ getFogLinearEnd()

float gRenderer::getFogLinearEnd ( ) const

◆ getFogLinearStart()

float gRenderer::getFogLinearStart ( ) const

◆ getFogMode()

int gRenderer::getFogMode ( ) const

◆ getFogNo()

int gRenderer::getFogNo ( ) const

◆ getFontShader()

gShader * gRenderer::getFontShader ( )

◆ getFullscreenQuadVAO()

unsigned int gRenderer::getFullscreenQuadVAO ( ) const

◆ getGlobalAmbientColor()

gColor * gRenderer::getGlobalAmbientColor ( )

◆ getGrid()

gGrid * gRenderer::getGrid ( ) const

◆ getGridLineInterval()

float gRenderer::getGridLineInterval ( )

◆ getGridMaxLength()

float gRenderer::getGridMaxLength ( )

◆ getGridShader()

gShader * gRenderer::getGridShader ( )

◆ getHeight()

int gRenderer::getHeight ( )

◆ getImageShader()

gShader * gRenderer::getImageShader ( )

◆ getIrradianceShader()

gShader * gRenderer::getIrradianceShader ( )

◆ getLightingColor()

gColor * gRenderer::getLightingColor ( )

◆ getLightingPosition()

glm::vec3 gRenderer::getLightingPosition ( )

◆ getPbrShader()

gShader * gRenderer::getPbrShader ( )

◆ getPrefilterShader()

gShader * gRenderer::getPrefilterShader ( )

◆ getProjectionMatrix()

const glm::mat4 & gRenderer::getProjectionMatrix ( ) const

◆ getProjectionMatrix2d()

const glm::mat4 & gRenderer::getProjectionMatrix2d ( ) const

◆ getResolution()

static int gRenderer::getResolution ( int  screenWidth,
int  screenHeight 
)
static

◆ getScaleMultiplier()

static float gRenderer::getScaleMultiplier ( )
static

◆ getSceneLight()

gLight * gRenderer::getSceneLight ( int  lightNo)

◆ getSceneLightNum()

int gRenderer::getSceneLightNum ( )

◆ getScreenHeight()

int gRenderer::getScreenHeight ( )

◆ getScreenScaling()

static int gRenderer::getScreenScaling ( )
static

◆ getScreenWidth()

int gRenderer::getScreenWidth ( )

◆ getShaderSrcBrdfFragment()

static const std::string & gRenderer::getShaderSrcBrdfFragment ( )
staticprotected

◆ getShaderSrcBrdfVertex()

static const std::string & gRenderer::getShaderSrcBrdfVertex ( )
staticprotected

◆ getShaderSrcColorFragment()

static const std::string & gRenderer::getShaderSrcColorFragment ( )
staticprotected

◆ getShaderSrcColorVertex()

static const std::string & gRenderer::getShaderSrcColorVertex ( )
staticprotected

◆ getShaderSrcCubemapVertex()

static const std::string & gRenderer::getShaderSrcCubemapVertex ( )
staticprotected

◆ getShaderSrcEquirectangularFragment()

static const std::string & gRenderer::getShaderSrcEquirectangularFragment ( )
staticprotected

◆ getShaderSrcFboFragment()

static const std::string & gRenderer::getShaderSrcFboFragment ( )
staticprotected

◆ getShaderSrcFboVertex()

static const std::string & gRenderer::getShaderSrcFboVertex ( )
staticprotected

◆ getShaderSrcFontFragment()

static const std::string & gRenderer::getShaderSrcFontFragment ( )
staticprotected

◆ getShaderSrcFontVertex()

static const std::string & gRenderer::getShaderSrcFontVertex ( )
staticprotected

◆ getShaderSrcGridFragment()

static const std::string & gRenderer::getShaderSrcGridFragment ( )
staticprotected

◆ getShaderSrcGridVertex()

static const std::string & gRenderer::getShaderSrcGridVertex ( )
staticprotected

◆ getShaderSrcImageFragment()

static const std::string & gRenderer::getShaderSrcImageFragment ( )
staticprotected

◆ getShaderSrcImageVertex()

static const std::string & gRenderer::getShaderSrcImageVertex ( )
staticprotected

◆ getShaderSrcIrradianceFragment()

static const std::string & gRenderer::getShaderSrcIrradianceFragment ( )
staticprotected

◆ getShaderSrcPbrFragment()

static const std::string & gRenderer::getShaderSrcPbrFragment ( )
staticprotected

◆ getShaderSrcPbrVertex()

static const std::string & gRenderer::getShaderSrcPbrVertex ( )
staticprotected

◆ getShaderSrcPrefilterFragment()

static const std::string & gRenderer::getShaderSrcPrefilterFragment ( )
staticprotected

◆ getShaderSrcShadowmapFragment()

static const std::string & gRenderer::getShaderSrcShadowmapFragment ( )
staticprotected

◆ getShaderSrcShadowmapVertex()

static const std::string & gRenderer::getShaderSrcShadowmapVertex ( )
staticprotected

◆ getShaderSrcSkyboxFragment()

static const std::string & gRenderer::getShaderSrcSkyboxFragment ( )
staticprotected

◆ getShaderSrcSkyboxVertex()

static const std::string & gRenderer::getShaderSrcSkyboxVertex ( )
staticprotected

◆ getShaderSrcSSAOBlurFragment()

static const std::string & gRenderer::getShaderSrcSSAOBlurFragment ( )
staticprotected

◆ getShaderSrcSSAOFragment()

static const std::string & gRenderer::getShaderSrcSSAOFragment ( )
staticprotected

◆ getShaderSrcSSAOVertex()

static const std::string & gRenderer::getShaderSrcSSAOVertex ( )
staticprotected

◆ getShaderSrcTextureFragment()

static const std::string & gRenderer::getShaderSrcTextureFragment ( )
staticprotected

◆ getShaderSrcTextureVertex()

static const std::string & gRenderer::getShaderSrcTextureVertex ( )
staticprotected

◆ getShadowmapShader()

gShader * gRenderer::getShadowmapShader ( )

◆ getSkyboxShader()

gShader * gRenderer::getSkyboxShader ( )

◆ getSSAOBias()

float gRenderer::getSSAOBias ( )

◆ getSSAORadius()

float gRenderer::getSSAORadius ( )

◆ getSSAOStrength()

float gRenderer::getSSAOStrength ( )

◆ getTextureShader()

gShader * gRenderer::getTextureShader ( )

◆ getUniformLocation()

virtual GLuint gRenderer::getUniformLocation ( GLuint  id,
const std::string &  name 
)
pure virtual

Implemented in gGLRenderEngine.

◆ getUnitHeight()

int gRenderer::getUnitHeight ( )

◆ getUnitResolution()

int gRenderer::getUnitResolution ( )

◆ getUnitWidth()

int gRenderer::getUnitWidth ( )

◆ getViewMatrix()

const glm::mat4 & gRenderer::getViewMatrix ( ) const

◆ getWidth()

int gRenderer::getWidth ( )

◆ init()

virtual void gRenderer::init ( )
protectedvirtual

Reimplemented in gGLRenderEngine.

◆ initSSAOResources()

void gRenderer::initSSAOResources ( )
protected

◆ isAlphaBlendingEnabled()

virtual bool gRenderer::isAlphaBlendingEnabled ( )
pure virtual

Implemented in gGLRenderEngine.

◆ isAlphaTestEnabled()

virtual bool gRenderer::isAlphaTestEnabled ( )
pure virtual

Implemented in gGLRenderEngine.

◆ isDepthTestEnabled()

virtual bool gRenderer::isDepthTestEnabled ( )
pure virtual

Implemented in gGLRenderEngine.

◆ isFogEnabled()

bool gRenderer::isFogEnabled ( )

◆ isGammaCorrectionEnabled()

bool gRenderer::isGammaCorrectionEnabled ( )

◆ isGridEnabled()

bool gRenderer::isGridEnabled ( )

◆ isGridXYEnabled()

bool gRenderer::isGridXYEnabled ( )

◆ isGridXZEnabled()

bool gRenderer::isGridXZEnabled ( )

◆ isGridYZEnabled()

bool gRenderer::isGridYZEnabled ( )

◆ isHDREnabled()

bool gRenderer::isHDREnabled ( )

◆ isLightingEnabled()

bool gRenderer::isLightingEnabled ( )

◆ isSoftShadowsEnabled()

bool gRenderer::isSoftShadowsEnabled ( )

◆ isSSAOAllocated()

bool gRenderer::isSSAOAllocated ( )

◆ isSSAODebug()

bool gRenderer::isSSAODebug ( )

◆ isSSAOEnabled()

bool gRenderer::isSSAOEnabled ( )

◆ loadProgram()

virtual GLuint gRenderer::loadProgram ( const char *  vertexSource,
const char *  fragmentSource,
const char *  geometrySource 
)
pure virtual

Implemented in gGLRenderEngine.

◆ popMatrix()

virtual void gRenderer::popMatrix ( )
pure virtual

Implemented in gGLRenderEngine.

◆ pushMatrix()

virtual void gRenderer::pushMatrix ( )
pure virtual

Implemented in gGLRenderEngine.

◆ readTexturePixels()

virtual void gRenderer::readTexturePixels ( unsigned char *  inPixels,
GLuint  textureId,
int  width,
int  height,
GLenum  format 
)
pure virtual

Implemented in gGLRenderEngine.

◆ readTexturePixelsHDR()

virtual void gRenderer::readTexturePixelsHDR ( float *  inPixels,
GLuint  textureId,
int  width,
int  height,
GLenum  format 
)
pure virtual

Implemented in gGLRenderEngine.

◆ removeAllSceneLights()

void gRenderer::removeAllSceneLights ( )

◆ removeSceneLight()

void gRenderer::removeSceneLight ( gLight light)

◆ resetShader()

virtual void gRenderer::resetShader ( GLuint  id,
bool  loaded 
) const
pure virtual

Implemented in gGLRenderEngine.

◆ resetTexture()

virtual void gRenderer::resetTexture ( )
pure virtual

Implemented in gGLRenderEngine.

◆ restoreMatrices()

void gRenderer::restoreMatrices ( )

◆ scaleX()

static int gRenderer::scaleX ( int  x)
static

◆ scaleY()

static int gRenderer::scaleY ( int  y)
static

◆ setBool()

virtual void gRenderer::setBool ( GLuint  uniformloc,
bool  value 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setBufferData()

virtual void gRenderer::setBufferData ( GLuint  buffer,
const void *  data,
size_t  size,
int  usage 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setBufferRange()

virtual void gRenderer::setBufferRange ( int  index,
GLuint  buffer,
int  offset,
int  size 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setCamera()

void gRenderer::setCamera ( gCamera camera)

◆ setCameraPosition()

void gRenderer::setCameraPosition ( glm::vec3  cameraPosition)

◆ setColor() [1/4]

void gRenderer::setColor ( const gColor color)

◆ setColor() [2/4]

void gRenderer::setColor ( float  r,
float  g,
float  b,
float  a = 1.0f 
)

◆ setColor() [3/4]

void gRenderer::setColor ( gColor color)

◆ setColor() [4/4]

void gRenderer::setColor ( int  r,
int  g,
int  b,
int  a = 255 
)

◆ setCurrentResolution() [1/2]

static void gRenderer::setCurrentResolution ( int  resolution)
static

◆ setCurrentResolution() [2/2]

static void gRenderer::setCurrentResolution ( int  screenWidth,
int  screenHeight 
)
static

◆ setDepthTestFunc()

virtual void gRenderer::setDepthTestFunc ( int  depthTestType)
pure virtual

Implemented in gGLRenderEngine.

◆ setDrawBufferNone()

virtual void gRenderer::setDrawBufferNone ( )
pure virtual

Implemented in gGLRenderEngine.

◆ setFiltering()

virtual void gRenderer::setFiltering ( GLenum  target,
GLint  minFilter,
GLint  magFilter 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setFloat()

virtual void gRenderer::setFloat ( GLuint  uniformloc,
float  value 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setFogColor() [1/2]

void gRenderer::setFogColor ( const gColor color)

◆ setFogColor() [2/2]

void gRenderer::setFogColor ( float  r,
float  g,
float  b 
)

◆ setFogDensity()

void gRenderer::setFogDensity ( float  value)

◆ setFogGradient()

void gRenderer::setFogGradient ( float  value)

◆ setFogLinearEnd()

void gRenderer::setFogLinearEnd ( float  value)

◆ setFogLinearStart()

void gRenderer::setFogLinearStart ( float  value)

◆ setFogMode()

void gRenderer::setFogMode ( int  fogMode)

◆ setFogNo()

void gRenderer::setFogNo ( int  no)

◆ setGlobalAmbientColor() [1/2]

void gRenderer::setGlobalAmbientColor ( gColor  color)
inline

◆ setGlobalAmbientColor() [2/2]

void gRenderer::setGlobalAmbientColor ( int  r,
int  g,
int  b,
int  a = 255 
)

◆ setGrid()

void gRenderer::setGrid ( gGrid newgrid)

◆ setGridColorofAxisWireFrameXY() [1/2]

void gRenderer::setGridColorofAxisWireFrameXY ( gColor color)

◆ setGridColorofAxisWireFrameXY() [2/2]

void gRenderer::setGridColorofAxisWireFrameXY ( int  r,
int  g,
int  b,
int  a 
)

◆ setGridColorofAxisWireFrameXZ() [1/2]

void gRenderer::setGridColorofAxisWireFrameXZ ( gColor color)

◆ setGridColorofAxisWireFrameXZ() [2/2]

void gRenderer::setGridColorofAxisWireFrameXZ ( int  r,
int  g,
int  b,
int  a 
)

◆ setGridColorofAxisWireFrameYZ() [1/2]

void gRenderer::setGridColorofAxisWireFrameYZ ( gColor color)

◆ setGridColorofAxisWireFrameYZ() [2/2]

void gRenderer::setGridColorofAxisWireFrameYZ ( int  r,
int  g,
int  b,
int  a 
)

◆ setGridColorofAxisXY() [1/2]

void gRenderer::setGridColorofAxisXY ( gColor color)

◆ setGridColorofAxisXY() [2/2]

void gRenderer::setGridColorofAxisXY ( int  r,
int  g,
int  b,
int  a 
)

◆ setGridColorofAxisXZ() [1/2]

void gRenderer::setGridColorofAxisXZ ( gColor color)

◆ setGridColorofAxisXZ() [2/2]

void gRenderer::setGridColorofAxisXZ ( int  r,
int  g,
int  b,
int  a 
)

◆ setGridColorofAxisYZ() [1/2]

void gRenderer::setGridColorofAxisYZ ( gColor color)

◆ setGridColorofAxisYZ() [2/2]

void gRenderer::setGridColorofAxisYZ ( int  r,
int  g,
int  b,
int  a 
)

◆ setGridEnableAxis()

void gRenderer::setGridEnableAxis ( bool  xy,
bool  yz,
bool  xz 
)

◆ setGridEnableXY()

void gRenderer::setGridEnableXY ( bool  xy)

◆ setGridEnableXZ()

void gRenderer::setGridEnableXZ ( bool  xz)

◆ setGridEnableYZ()

void gRenderer::setGridEnableYZ ( bool  yz)

◆ setGridLineInterval()

void gRenderer::setGridLineInterval ( float  intervalvalue)

◆ setGridMaxLength()

void gRenderer::setGridMaxLength ( float  length)

◆ setIndexBufferData()

virtual void gRenderer::setIndexBufferData ( GLuint  ebo,
size_t  size,
const void *  data,
int  usage 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setInt()

virtual void gRenderer::setInt ( GLuint  uniformloc,
int  value 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setLightingColor() [1/2]

void gRenderer::setLightingColor ( gColor color)
inline

◆ setLightingColor() [2/2]

void gRenderer::setLightingColor ( int  r,
int  g,
int  b,
int  a = 255 
)

◆ setLightingPosition()

void gRenderer::setLightingPosition ( glm::vec3  lightingPosition)

◆ setMat2()

virtual void gRenderer::setMat2 ( GLuint  uniformloc,
const glm::mat2 &  mat 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setMat3()

virtual void gRenderer::setMat3 ( GLuint  uniformloc,
const glm::mat3 &  mat 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setMat4()

virtual void gRenderer::setMat4 ( GLuint  uniformloc,
const glm::mat4 &  mat 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setProjectionMatrix()

void gRenderer::setProjectionMatrix ( glm::mat4  projectionMatrix)

◆ setProjectionMatrix2d()

void gRenderer::setProjectionMatrix2d ( glm::mat4  projectionMatrix2d)

◆ setReadBufferNone()

virtual void gRenderer::setReadBufferNone ( )
pure virtual

Implemented in gGLRenderEngine.

◆ setRenderbufferStorage()

virtual void gRenderer::setRenderbufferStorage ( GLenum  format,
int  width,
int  height 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setScreenScaling()

static void gRenderer::setScreenScaling ( int  screenScaling)
static

◆ setScreenSize()

static void gRenderer::setScreenSize ( int  screenWidth,
int  screenHeight 
)
static

◆ setSSAOBias()

void gRenderer::setSSAOBias ( float  value)

◆ setSSAODebug()

void gRenderer::setSSAODebug ( bool  enabled)

◆ setSSAORadius()

void gRenderer::setSSAORadius ( float  value)

◆ setSSAOStrength()

void gRenderer::setSSAOStrength ( float  value)

◆ setSwizzleMask()

virtual void gRenderer::setSwizzleMask ( GLint  swizzleMask[4])
pure virtual

Implemented in gGLRenderEngine.

◆ setUnitResolution() [1/2]

static void gRenderer::setUnitResolution ( int  resolution)
static

◆ setUnitResolution() [2/2]

static void gRenderer::setUnitResolution ( int  screenWidth,
int  screenHeight 
)
static

◆ setUnitScreenSize()

static void gRenderer::setUnitScreenSize ( int  unitWidth,
int  unitHeight 
)
static

◆ setUnsignedInt()

virtual void gRenderer::setUnsignedInt ( GLuint  uniformloc,
unsigned int  value 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setVec2() [1/2]

virtual void gRenderer::setVec2 ( GLuint  uniformloc,
const glm::vec2 &  value 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setVec2() [2/2]

virtual void gRenderer::setVec2 ( GLuint  uniformloc,
float  x,
float  y 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setVec3() [1/2]

virtual void gRenderer::setVec3 ( GLuint  uniformloc,
const glm::vec3 &  value 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setVec3() [2/2]

virtual void gRenderer::setVec3 ( GLuint  uniformloc,
float  x,
float  y,
float  z 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setVec4() [1/2]

virtual void gRenderer::setVec4 ( GLuint  uniformloc,
const glm::vec4 &  value 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setVec4() [2/2]

virtual void gRenderer::setVec4 ( GLuint  uniformloc,
float  x,
float  y,
float  z,
float  w 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setVertexAttribPointer()

virtual void gRenderer::setVertexAttribPointer ( int  index,
int  size,
int  type,
bool  normalized,
int  stride,
const void *  pointer 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setVertexBufferData()

virtual void gRenderer::setVertexBufferData ( GLuint  vbo,
size_t  size,
const void *  data,
int  usage 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setViewMatrix()

void gRenderer::setViewMatrix ( glm::mat4  viewMatrix)

◆ setViewport()

virtual void gRenderer::setViewport ( int  x,
int  y,
int  width,
int  height 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setWrapping() [1/2]

virtual void gRenderer::setWrapping ( GLenum  target,
GLint  wrapS,
GLint  wrapT 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setWrapping() [2/2]

virtual void gRenderer::setWrapping ( GLenum  target,
GLint  wrapS,
GLint  wrapT,
GLint  wrapR 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setWrappingAndFiltering() [1/2]

virtual void gRenderer::setWrappingAndFiltering ( GLenum  target,
GLint  wrapS,
GLint  wrapT,
GLint  minFilter,
GLint  magFilter 
)
pure virtual

Implemented in gGLRenderEngine.

◆ setWrappingAndFiltering() [2/2]

virtual void gRenderer::setWrappingAndFiltering ( GLenum  target,
GLint  wrapS,
GLint  wrapT,
GLint  wrapR,
GLint  minFilter,
GLint  magFilter 
)
pure virtual

Implemented in gGLRenderEngine.

◆ takeScreenshot() [1/2]

virtual void gRenderer::takeScreenshot ( gImage img)
pure virtual

Implemented in gGLRenderEngine.

◆ takeScreenshot() [2/2]

virtual void gRenderer::takeScreenshot ( gImage img,
int  x,
int  y,
int  width,
int  height 
)
pure virtual

Implemented in gGLRenderEngine.

◆ texImage2D()

virtual void gRenderer::texImage2D ( GLenum  target,
GLint  internalFormat,
int  width,
int  height,
GLint  format,
GLint  type,
void *  data 
)
pure virtual

Implemented in gGLRenderEngine.

◆ unbindBuffer()

virtual void gRenderer::unbindBuffer ( GLenum  target)
pure virtual

Implemented in gGLRenderEngine.

◆ unbindSkyTexture() [1/2]

virtual void gRenderer::unbindSkyTexture ( )
pure virtual

Implemented in gGLRenderEngine.

◆ unbindSkyTexture() [2/2]

virtual void gRenderer::unbindSkyTexture ( int  textureSlotNo)
pure virtual

Implemented in gGLRenderEngine.

◆ unbindTexture()

virtual void gRenderer::unbindTexture ( )
pure virtual

Implemented in gGLRenderEngine.

◆ unbindVAO()

virtual void gRenderer::unbindVAO ( )
pure virtual

Implemented in gGLRenderEngine.

◆ unscaleX()

static int gRenderer::unscaleX ( int  x)
static

◆ unscaleY()

static int gRenderer::unscaleY ( int  y)
static

◆ updateLights()

void gRenderer::updateLights ( )

◆ updatePackUnpackAlignment()

virtual void gRenderer::updatePackUnpackAlignment ( int  i)
protectedpure virtual

◆ updateScene()

void gRenderer::updateScene ( )

◆ useShader()

virtual void gRenderer::useShader ( GLuint  id) const
pure virtual

Implemented in gGLRenderEngine.

Friends And Related Symbol Documentation

◆ gAppManager

friend class gAppManager
friend

◆ gRenderObject

friend class gRenderObject
friend

Member Data Documentation

◆ arcmesh

std::unique_ptr<gArc> gRenderer::arcmesh
protected

◆ boxmesh

std::unique_ptr<gBox> gRenderer::boxmesh
protected

◆ brdfshader

gShader* gRenderer::brdfshader
protected

◆ camera

gCamera* gRenderer::camera
protected

◆ cameraposition

glm::vec3 gRenderer::cameraposition
protected

◆ circlemesh

std::unique_ptr<gCircle> gRenderer::circlemesh
protected

◆ colorshader

gShader* gRenderer::colorshader
protected

◆ crossmesh

std::unique_ptr<gCross> gRenderer::crossmesh
protected

◆ currentresolution

int gRenderer::currentresolution
staticprotected

◆ depthtesttype

int gRenderer::depthtesttype
protected

◆ DEPTHTESTTYPE_ALWAYS

const int gRenderer::DEPTHTESTTYPE_ALWAYS
static

◆ DEPTHTESTTYPE_LESS

const int gRenderer::DEPTHTESTTYPE_LESS
static

◆ depthtesttypeid

unsigned int gRenderer::depthtesttypeid[2]
protected

◆ equirectangularshader

gShader* gRenderer::equirectangularshader
protected

◆ fboshader

gShader* gRenderer::fboshader
protected

◆ fogcolor

gColor gRenderer::fogcolor
protected

◆ fogdensity

float gRenderer::fogdensity
protected

◆ foggradient

float gRenderer::foggradient
protected

◆ foglinearend

float gRenderer::foglinearend
protected

◆ foglinearstart

float gRenderer::foglinearstart
protected

◆ fogmode

int gRenderer::fogmode
protected

◆ FOGMODE_EXP

const int gRenderer::FOGMODE_EXP
static

◆ FOGMODE_LINEAR

const int gRenderer::FOGMODE_LINEAR
static

◆ fogno

int gRenderer::fogno
protected

◆ fontshader

gShader* gRenderer::fontshader
protected

◆ fullscreenquadvao

unsigned int gRenderer::fullscreenquadvao
protected

◆ fullscreenquadvbo

unsigned int gRenderer::fullscreenquadvbo
protected

◆ globalambientcolor

gColor gRenderer::globalambientcolor
protected

◆ grid

gGrid* gRenderer::grid
protected

◆ gridshader

gShader* gRenderer::gridshader
protected

◆ height

int gRenderer::height
staticprotected

◆ imageshader

gShader* gRenderer::imageshader
protected

◆ irradianceshader

gShader* gRenderer::irradianceshader
protected

◆ isalphablendingenabled

bool gRenderer::isalphablendingenabled
protected

◆ isalphatestenabled

bool gRenderer::isalphatestenabled
protected

◆ isdepthtestenabled

bool gRenderer::isdepthtestenabled
protected

◆ isfogenabled

bool gRenderer::isfogenabled
protected

◆ isgammacorrectionenabled

bool gRenderer::isgammacorrectionenabled
protected

◆ isglobalambientcolorchanged

bool gRenderer::isglobalambientcolorchanged
protected

◆ ishdrenabled

bool gRenderer::ishdrenabled
protected

◆ islightingenabled

bool gRenderer::islightingenabled
protected

◆ issoftshadowsenabled

bool gRenderer::issoftshadowsenabled
protected

◆ isssaoallocated

bool gRenderer::isssaoallocated
protected

◆ isssaodebug

bool gRenderer::isssaodebug
protected

◆ isssaoenabled

bool gRenderer::isssaoenabled
protected

◆ isssaorendering

bool gRenderer::isssaorendering
protected

◆ lightingcolor

gColor gRenderer::lightingcolor
protected

◆ lightingposition

glm::vec3 gRenderer::lightingposition
protected

◆ lightsubo

gUbo<gSceneLights>* gRenderer::lightsubo
protected

◆ linemesh

std::unique_ptr<gLine> gRenderer::linemesh
protected

◆ linemesh2

std::unique_ptr<gLine> gRenderer::linemesh2
protected

◆ linemesh3

std::unique_ptr<gLine> gRenderer::linemesh3
protected

◆ originalgrid

gGrid* gRenderer::originalgrid
protected

◆ pbrshader

gShader* gRenderer::pbrshader
protected

◆ prefiltershader

gShader* gRenderer::prefiltershader
protected

◆ projectionmatrix

glm::mat4 gRenderer::projectionmatrix
protected

◆ projectionmatrix2d

glm::mat4 gRenderer::projectionmatrix2d
protected

◆ projectionmatrixold

glm::mat4 gRenderer::projectionmatrixold
protected

◆ rectanglemesh

std::unique_ptr<gRectangle> gRenderer::rectanglemesh
protected

◆ rendercolor

gColor* gRenderer::rendercolor
protected

◆ roundedrectanglemesh

std::unique_ptr<gRoundedRectangle> gRenderer::roundedrectanglemesh
protected

◆ scenelights

std::deque<gLight*> gRenderer::scenelights
protected

◆ sceneubo

gUbo<gSceneData>* gRenderer::sceneubo
protected

◆ screenscaling

int gRenderer::screenscaling
staticprotected

◆ SCREENSCALING_AUTO

const int gRenderer::SCREENSCALING_AUTO
static

◆ SCREENSCALING_MIPMAP

const int gRenderer::SCREENSCALING_MIPMAP
static

◆ SCREENSCALING_NONE

const int gRenderer::SCREENSCALING_NONE
static

◆ shadowmapshader

gShader* gRenderer::shadowmapshader
protected

◆ skyboxshader

gShader* gRenderer::skyboxshader
protected

◆ ssaobias

float gRenderer::ssaobias
protected

◆ ssaoblurshader

gShader* gRenderer::ssaoblurshader
protected

◆ ssaofbo

gFbo* gRenderer::ssaofbo
protected

◆ ssaokernel

std::vector<glm::vec3> gRenderer::ssaokernel
protected

◆ ssaonoisetexture

unsigned int gRenderer::ssaonoisetexture
protected

◆ ssaoradius

float gRenderer::ssaoradius
protected

◆ ssaorealdefaultfbo

int gRenderer::ssaorealdefaultfbo
protected

◆ ssaoresultfbo

gFbo* gRenderer::ssaoresultfbo
protected

◆ ssaoshader

gShader* gRenderer::ssaoshader
protected

◆ ssaostrength

float gRenderer::ssaostrength
protected

◆ textureshader

gShader* gRenderer::textureshader
protected

◆ trianglemesh

std::unique_ptr<gTriangle> gRenderer::trianglemesh
protected

◆ unitheight

int gRenderer::unitheight
staticprotected

◆ unitresolution

int gRenderer::unitresolution
staticprotected

◆ unitwidth

int gRenderer::unitwidth
staticprotected

◆ viewmatrix

glm::mat4 gRenderer::viewmatrix
protected

◆ viewmatrixold

glm::mat4 gRenderer::viewmatrixold
protected

◆ width

int gRenderer::width
staticprotected

The documentation for this class was generated from the following file: