GlistEngine
Loading...
Searching...
No Matches
gFbo Class Reference

#include <gFbo.h>

Inheritance diagram for gFbo:
Collaboration diagram for gFbo:

Public Member Functions

 gFbo ()
virtual ~gFbo ()
void allocate (int width, int height, bool isDepthMap=false, bool useDepthTexture=false)
unsigned int getId () const
int getWidth () const
int getHeight () const
unsigned int getTextureId () const
unsigned int getDepthTextureId () const
gTexture & getTexture ()
void bind ()
void unbind ()
void draw (int x, int y)
void draw (int x, int y, int w, int h)
void draw (int x, int y, int w, int h, float rotate)
void draw (glm::vec2 position, glm::vec2 size, float rotate=0.0f)
void drawSub (int x, int y, int sx, int sy, int sw, int sh)
void drawSub (int x, int y, int w, int h, int sx, int sy, int sw, int sh)
void drawSub (int x, int y, int w, int h, int sx, int sy, int sw, int sh, float rotate)
void drawSub (glm::vec2 pos, glm::vec2 size, glm::vec2 subpos, glm::vec2 subsize, float rotate=0.0f)
void drawSub (const gRect &src, const gRect &dst, float rotate=0.f)
void allocateMipChain (int width, int height, int miplevels)
void bindMip (int level)
Public Member Functions inherited from gRenderObject
 gRenderObject ()
int getScreenWidth ()
int getScreenHeight ()
void pushMatrix ()
void popMatrix ()
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 Attributes

static int defaultfbo
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

Additional Inherited Members

Static Public Member Functions inherited from gRenderObject
static void setScreenSize (int screenWidth, int screenHeight)
static void setUnitScreenSize (int unitWidth, int unitHeight)
static void setScreenScaling (int screenScaling)
static void enableShadowMapping ()
static void disableShadowMapping ()
static bool isShadowMappingEnabled ()
static void enableExtraShaders (bool isEnabled=true)
static void disableExtraShaders ()
static bool isExtraShadersEnabled ()
static gRenderer * getRenderer ()
static void destroyRenderer ()
static void createRenderer (int renderEngine=G_RENDERER_GL)
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 Protected Attributes inherited from gRenderObject
static bool isshadowmappingenabled
static bool isextrashadersenabled
Static Protected Attributes inherited from gObject
static int renderpassnum
static int renderpassno
static int releasescaling
static int releaseresolution

Constructor & Destructor Documentation

◆ gFbo()

gFbo::gFbo ( )

◆ ~gFbo()

virtual gFbo::~gFbo ( )
virtual

Member Function Documentation

◆ allocate()

void gFbo::allocate ( int width,
int height,
bool isDepthMap = false,
bool useDepthTexture = false )

◆ allocateMipChain()

void gFbo::allocateMipChain ( int width,
int height,
int miplevels )

◆ bind()

void gFbo::bind ( )

◆ bindMip()

void gFbo::bindMip ( int level)

◆ draw() [1/4]

void gFbo::draw ( glm::vec2 position,
glm::vec2 size,
float rotate = 0.0f )

◆ draw() [2/4]

void gFbo::draw ( int x,
int y )

◆ draw() [3/4]

void gFbo::draw ( int x,
int y,
int w,
int h )

◆ draw() [4/4]

void gFbo::draw ( int x,
int y,
int w,
int h,
float rotate )

◆ drawSub() [1/5]

void gFbo::drawSub ( const gRect & src,
const gRect & dst,
float rotate = 0.f )

◆ drawSub() [2/5]

void gFbo::drawSub ( glm::vec2 pos,
glm::vec2 size,
glm::vec2 subpos,
glm::vec2 subsize,
float rotate = 0.0f )

◆ drawSub() [3/5]

void gFbo::drawSub ( int x,
int y,
int sx,
int sy,
int sw,
int sh )

◆ drawSub() [4/5]

void gFbo::drawSub ( int x,
int y,
int w,
int h,
int sx,
int sy,
int sw,
int sh )

◆ drawSub() [5/5]

void gFbo::drawSub ( int x,
int y,
int w,
int h,
int sx,
int sy,
int sw,
int sh,
float rotate )

◆ getDepthTextureId()

unsigned int gFbo::getDepthTextureId ( ) const

◆ getHeight()

int gFbo::getHeight ( ) const

◆ getId()

unsigned int gFbo::getId ( ) const

◆ getTexture()

gTexture & gFbo::getTexture ( )

◆ getTextureId()

unsigned int gFbo::getTextureId ( ) const

◆ getWidth()

int gFbo::getWidth ( ) const

◆ unbind()

void gFbo::unbind ( )

Member Data Documentation

◆ defaultfbo

int gFbo::defaultfbo
static

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