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

#include <gGrid.h>

Inheritance diagram for gGrid:
Collaboration diagram for gGrid:

Public Member Functions

 gGrid ()
virtual ~gGrid ()
void draw ()
void clear ()
void drawYZ ()
void drawXY ()
void drawXZ ()
void enable ()
void disable ()
bool isEnabled () const
void setEnableGrid (bool xy, bool yz, bool xz)
void setEnableYZ (bool yz)
void setEnableXY (bool xy)
void setEnableXZ (bool xz)
bool isYZEnabled () const
bool isXYEnabled () const
bool isXZEnabled () const
void drawAxisX ()
void drawAxisY ()
void drawAxisZ ()
void setEnableAxis (bool x, bool y, bool z)
void setEnableAxisX (bool x)
void setEnableAxisY (bool y)
void setEnableAxisZ (bool z)
bool isAxisXEnabled () const
bool isAxisYEnabled () const
bool isAxisZEnabled () const
void drawWireFrameYZ ()
void drawWireFrameXY ()
void drawWireFrameXZ ()
void setEnableWireFrame (bool xy, bool yz, bool xz)
void setEnableWireFrameYZ (bool yz)
void setEnableWireFrameXY (bool xy)
void setEnableWireFrameXZ (bool xz)
bool isWireFrameYZEnabled () const
bool isWireFrameXYEnabled () const
bool isWireFrameXZEnabled () const
void setColorAxisX (int r, int g, int b, int a)
void setColorAxisY (int r, int g, int b, int a)
void setColorAxisZ (int r, int g, int b, int a)
void setColorAxisX (gColor *color)
void setColorAxisY (gColor *color)
void setColorAxisZ (gColor *color)
void setColorWireFrameYZ (int r, int g, int b, int a)
void setColorWireFrameXY (int r, int g, int b, int a)
void setColorWireFrameXZ (int r, int g, int b, int a)
void setColorWireFrameYZ (gColor *color)
void setColorWireFrameXY (gColor *color)
void setColorWireFrameXZ (gColor *color)
void enableAutoClip ()
void disableAutoClip ()
bool isAutoClipEnabled () const
void setNearClip (float near)
void setFarClip (float far)
float getNearClip () const
float getFarClip () const
void setLineSpacing (float spacing)
float getLineSpacing ()
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 const int XY = 0
static const int YZ = 1
static const int XZ = 2
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

◆ gGrid()

gGrid::gGrid ( )

◆ ~gGrid()

virtual gGrid::~gGrid ( )
virtual

Member Function Documentation

◆ clear()

void gGrid::clear ( )

◆ disable()

void gGrid::disable ( )

◆ disableAutoClip()

void gGrid::disableAutoClip ( )

◆ draw()

void gGrid::draw ( )

◆ drawAxisX()

void gGrid::drawAxisX ( )

◆ drawAxisY()

void gGrid::drawAxisY ( )

◆ drawAxisZ()

void gGrid::drawAxisZ ( )

◆ drawWireFrameXY()

void gGrid::drawWireFrameXY ( )

◆ drawWireFrameXZ()

void gGrid::drawWireFrameXZ ( )

◆ drawWireFrameYZ()

void gGrid::drawWireFrameYZ ( )

◆ drawXY()

void gGrid::drawXY ( )

◆ drawXZ()

void gGrid::drawXZ ( )

◆ drawYZ()

void gGrid::drawYZ ( )

◆ enable()

void gGrid::enable ( )

◆ enableAutoClip()

void gGrid::enableAutoClip ( )

◆ getFarClip()

float gGrid::getFarClip ( ) const

◆ getLineSpacing()

float gGrid::getLineSpacing ( )

◆ getNearClip()

float gGrid::getNearClip ( ) const

◆ isAutoClipEnabled()

bool gGrid::isAutoClipEnabled ( ) const

◆ isAxisXEnabled()

bool gGrid::isAxisXEnabled ( ) const

◆ isAxisYEnabled()

bool gGrid::isAxisYEnabled ( ) const

◆ isAxisZEnabled()

bool gGrid::isAxisZEnabled ( ) const

◆ isEnabled()

bool gGrid::isEnabled ( ) const

◆ isWireFrameXYEnabled()

bool gGrid::isWireFrameXYEnabled ( ) const

◆ isWireFrameXZEnabled()

bool gGrid::isWireFrameXZEnabled ( ) const

◆ isWireFrameYZEnabled()

bool gGrid::isWireFrameYZEnabled ( ) const

◆ isXYEnabled()

bool gGrid::isXYEnabled ( ) const

◆ isXZEnabled()

bool gGrid::isXZEnabled ( ) const

◆ isYZEnabled()

bool gGrid::isYZEnabled ( ) const

◆ setColorAxisX() [1/2]

void gGrid::setColorAxisX ( gColor * color)

◆ setColorAxisX() [2/2]

void gGrid::setColorAxisX ( int r,
int g,
int b,
int a )

◆ setColorAxisY() [1/2]

void gGrid::setColorAxisY ( gColor * color)

◆ setColorAxisY() [2/2]

void gGrid::setColorAxisY ( int r,
int g,
int b,
int a )

◆ setColorAxisZ() [1/2]

void gGrid::setColorAxisZ ( gColor * color)

◆ setColorAxisZ() [2/2]

void gGrid::setColorAxisZ ( int r,
int g,
int b,
int a )

◆ setColorWireFrameXY() [1/2]

void gGrid::setColorWireFrameXY ( gColor * color)

◆ setColorWireFrameXY() [2/2]

void gGrid::setColorWireFrameXY ( int r,
int g,
int b,
int a )

◆ setColorWireFrameXZ() [1/2]

void gGrid::setColorWireFrameXZ ( gColor * color)

◆ setColorWireFrameXZ() [2/2]

void gGrid::setColorWireFrameXZ ( int r,
int g,
int b,
int a )

◆ setColorWireFrameYZ() [1/2]

void gGrid::setColorWireFrameYZ ( gColor * color)

◆ setColorWireFrameYZ() [2/2]

void gGrid::setColorWireFrameYZ ( int r,
int g,
int b,
int a )

◆ setEnableAxis()

void gGrid::setEnableAxis ( bool x,
bool y,
bool z )

◆ setEnableAxisX()

void gGrid::setEnableAxisX ( bool x)

◆ setEnableAxisY()

void gGrid::setEnableAxisY ( bool y)

◆ setEnableAxisZ()

void gGrid::setEnableAxisZ ( bool z)

◆ setEnableGrid()

void gGrid::setEnableGrid ( bool xy,
bool yz,
bool xz )

◆ setEnableWireFrame()

void gGrid::setEnableWireFrame ( bool xy,
bool yz,
bool xz )

◆ setEnableWireFrameXY()

void gGrid::setEnableWireFrameXY ( bool xy)

◆ setEnableWireFrameXZ()

void gGrid::setEnableWireFrameXZ ( bool xz)

◆ setEnableWireFrameYZ()

void gGrid::setEnableWireFrameYZ ( bool yz)

◆ setEnableXY()

void gGrid::setEnableXY ( bool xy)

◆ setEnableXZ()

void gGrid::setEnableXZ ( bool xz)

◆ setEnableYZ()

void gGrid::setEnableYZ ( bool yz)

◆ setFarClip()

void gGrid::setFarClip ( float far)

◆ setLineSpacing()

void gGrid::setLineSpacing ( float spacing)

◆ setNearClip()

void gGrid::setNearClip ( float near)

Member Data Documentation

◆ XY

const int gGrid::XY = 0
static

◆ XZ

const int gGrid::XZ = 2
static

◆ YZ

const int gGrid::YZ = 1
static

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