#include <gBaseCanvas.h>
|
| | gBaseCanvas (gBaseApp *root) |
| |
| virtual | ~gBaseCanvas () |
| |
| virtual void | setup () |
| |
| virtual void | update () |
| |
| virtual void | draw () |
| |
| virtual void | keyPressed (int key) |
| |
| virtual void | keyReleased (int key) |
| |
| virtual void | charPressed (unsigned int codepoint) |
| |
| virtual void | mouseMoved (int x, int y) |
| |
| virtual void | mouseDragged (int x, int y, int button) |
| |
| virtual void | mousePressed (int x, int y, int button) |
| |
| virtual void | mouseReleased (int x, int y, int button) |
| |
| virtual void | mouseScrolled (int x, int y) |
| |
| virtual void | mouseEntered () |
| |
| virtual void | mouseExited () |
| |
| virtual void | windowResized (int w, int h) |
| |
| virtual void | joystickConnected (int joystickId, bool isGamepad, bool isConnected) |
| |
| virtual void | gamepadButtonPressed (int joystickId, int key) |
| |
| virtual void | gamepadButtonReleased (int joystickId, int key) |
| |
| virtual void | onGuiEvent (int guiObjectId, int eventType, std::string value1="", std::string value2="") |
| |
| virtual void | pause () |
| |
| virtual void | resume () |
| |
| virtual void | onEvent (gEvent &event) |
| |
| virtual void | showNotify () |
| |
| virtual void | hideNotify () |
| |
| void | clearBackground () |
| |
| | gRenderObject () |
| |
| int | getScreenWidth () |
| |
| int | getScreenHeight () |
| |
| void | pushMatrix () |
| |
| void | popMatrix () |
| |
| | 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) |
| |
|
| int | getWidth () |
| |
| int | getHeight () |
| |
| void | setColor (int r, int g, int b, int a=255) |
| |
| void | setColor (gColor color) |
| |
| gColor | getColor () |
| |
| void | clear () |
| |
| void | clearColor (int r, int g, int b, int a=255) |
| |
| void | clearColor (gColor color) |
| |
| 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 | addSceneLight (gLight *light) |
| |
| gLight * | getSceneLight (int lightNo) |
| |
| int | getSceneLightNum () |
| |
| void | removeSceneLight (gLight *light) |
| |
| void | removeAllSceneLights () |
| |
| void | enableDepthTest () |
| |
| void | enableDepthTest (int depthTestType) |
| |
| void | setDepthTestFunc (int depthTestType) |
| |
| void | disableDepthTest () |
| |
| bool | isDepthTestEnabled () |
| |
| int | getDepthTestType () |
| |
| void | enableAlphaBlending () |
| |
| void | disableAlphaBlending () |
| |
| void | enableAlphaTest () |
| |
| void | disableAlphaTest () |
| |
| 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 | setGridMaxLength (float length) |
| |
| float | getGridMaxLength () |
| |
| void | setGridLineInterval (float intervalvalue) |
| |
| float | getGridLineInterval () |
| |
| 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 () |
| |
| bool | isJoystickConnected (int joystickId) |
| |
| bool | isGamepadButtonPressed (int joystickId, int buttonId) |
| |
◆ gBaseCanvas()
| gBaseCanvas::gBaseCanvas |
( |
gBaseApp * |
root | ) |
|
◆ ~gBaseCanvas()
| virtual gBaseCanvas::~gBaseCanvas |
( |
| ) |
|
|
virtual |
◆ addSceneLight()
| void gBaseCanvas::addSceneLight |
( |
gLight * |
light | ) |
|
|
protected |
◆ charPressed()
| virtual void gBaseCanvas::charPressed |
( |
unsigned int |
codepoint | ) |
|
|
virtual |
◆ clear()
| void gBaseCanvas::clear |
( |
| ) |
|
|
protected |
◆ clearBackground()
| void gBaseCanvas::clearBackground |
( |
| ) |
|
◆ clearColor() [1/2]
| void gBaseCanvas::clearColor |
( |
gColor |
color | ) |
|
|
protected |
◆ clearColor() [2/2]
| void gBaseCanvas::clearColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a = 255 |
|
) |
| |
|
protected |
◆ disableAlphaBlending()
| void gBaseCanvas::disableAlphaBlending |
( |
| ) |
|
|
protected |
◆ disableAlphaTest()
| void gBaseCanvas::disableAlphaTest |
( |
| ) |
|
|
protected |
◆ disableDepthTest()
| void gBaseCanvas::disableDepthTest |
( |
| ) |
|
|
protected |
◆ disableGrid()
| void gBaseCanvas::disableGrid |
( |
| ) |
|
|
protected |
◆ disableLighting()
| void gBaseCanvas::disableLighting |
( |
| ) |
|
|
protected |
◆ draw()
| virtual void gBaseCanvas::draw |
( |
| ) |
|
|
virtual |
◆ enableAlphaBlending()
| void gBaseCanvas::enableAlphaBlending |
( |
| ) |
|
|
protected |
◆ enableAlphaTest()
| void gBaseCanvas::enableAlphaTest |
( |
| ) |
|
|
protected |
◆ enableDepthTest() [1/2]
| void gBaseCanvas::enableDepthTest |
( |
| ) |
|
|
protected |
◆ enableDepthTest() [2/2]
| void gBaseCanvas::enableDepthTest |
( |
int |
depthTestType | ) |
|
|
protected |
◆ enableGrid()
| void gBaseCanvas::enableGrid |
( |
| ) |
|
|
protected |
◆ enableLighting()
| void gBaseCanvas::enableLighting |
( |
| ) |
|
|
protected |
◆ gamepadButtonPressed()
| virtual void gBaseCanvas::gamepadButtonPressed |
( |
int |
joystickId, |
|
|
int |
key |
|
) |
| |
|
virtual |
◆ gamepadButtonReleased()
| virtual void gBaseCanvas::gamepadButtonReleased |
( |
int |
joystickId, |
|
|
int |
key |
|
) |
| |
|
virtual |
◆ getColor()
| gColor gBaseCanvas::getColor |
( |
| ) |
|
|
protected |
◆ getDepthTestType()
| int gBaseCanvas::getDepthTestType |
( |
| ) |
|
|
protected |
◆ getGlobalAmbientColor()
| gColor * gBaseCanvas::getGlobalAmbientColor |
( |
| ) |
|
|
protected |
◆ getGridLineInterval()
| float gBaseCanvas::getGridLineInterval |
( |
| ) |
|
|
protected |
◆ getGridMaxLength()
| float gBaseCanvas::getGridMaxLength |
( |
| ) |
|
|
protected |
◆ getHeight()
| int gBaseCanvas::getHeight |
( |
| ) |
|
|
protected |
◆ getLightingColor()
| gColor * gBaseCanvas::getLightingColor |
( |
| ) |
|
|
protected |
◆ getLightingPosition()
| glm::vec3 gBaseCanvas::getLightingPosition |
( |
| ) |
|
|
protected |
◆ getSceneLight()
| gLight * gBaseCanvas::getSceneLight |
( |
int |
lightNo | ) |
|
|
protected |
◆ getSceneLightNum()
| int gBaseCanvas::getSceneLightNum |
( |
| ) |
|
|
protected |
◆ getWidth()
| int gBaseCanvas::getWidth |
( |
| ) |
|
|
protected |
◆ hideNotify()
| virtual void gBaseCanvas::hideNotify |
( |
| ) |
|
|
virtual |
◆ isDepthTestEnabled()
| bool gBaseCanvas::isDepthTestEnabled |
( |
| ) |
|
|
protected |
◆ isGamepadButtonPressed()
| bool gBaseCanvas::isGamepadButtonPressed |
( |
int |
joystickId, |
|
|
int |
buttonId |
|
) |
| |
|
protected |
◆ isGridEnabled()
| bool gBaseCanvas::isGridEnabled |
( |
| ) |
|
|
protected |
◆ isGridXYEnabled()
| bool gBaseCanvas::isGridXYEnabled |
( |
| ) |
|
|
protected |
◆ isGridXZEnabled()
| bool gBaseCanvas::isGridXZEnabled |
( |
| ) |
|
|
protected |
◆ isGridYZEnabled()
| bool gBaseCanvas::isGridYZEnabled |
( |
| ) |
|
|
protected |
◆ isJoystickConnected()
| bool gBaseCanvas::isJoystickConnected |
( |
int |
joystickId | ) |
|
|
protected |
◆ isLightingEnabled()
| bool gBaseCanvas::isLightingEnabled |
( |
| ) |
|
|
protected |
◆ joystickConnected()
| virtual void gBaseCanvas::joystickConnected |
( |
int |
joystickId, |
|
|
bool |
isGamepad, |
|
|
bool |
isConnected |
|
) |
| |
|
virtual |
◆ keyPressed()
| virtual void gBaseCanvas::keyPressed |
( |
int |
key | ) |
|
|
virtual |
◆ keyReleased()
| virtual void gBaseCanvas::keyReleased |
( |
int |
key | ) |
|
|
virtual |
◆ mouseDragged()
| virtual void gBaseCanvas::mouseDragged |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
button |
|
) |
| |
|
virtual |
◆ mouseEntered()
| virtual void gBaseCanvas::mouseEntered |
( |
| ) |
|
|
virtual |
◆ mouseExited()
| virtual void gBaseCanvas::mouseExited |
( |
| ) |
|
|
virtual |
◆ mouseMoved()
| virtual void gBaseCanvas::mouseMoved |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
◆ mousePressed()
| virtual void gBaseCanvas::mousePressed |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
button |
|
) |
| |
|
virtual |
◆ mouseReleased()
| virtual void gBaseCanvas::mouseReleased |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
button |
|
) |
| |
|
virtual |
◆ mouseScrolled()
| virtual void gBaseCanvas::mouseScrolled |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
◆ onEvent()
| virtual void gBaseCanvas::onEvent |
( |
gEvent & |
event | ) |
|
|
virtual |
◆ onGuiEvent()
| virtual void gBaseCanvas::onGuiEvent |
( |
int |
guiObjectId, |
|
|
int |
eventType, |
|
|
std::string |
value1 = "", |
|
|
std::string |
value2 = "" |
|
) |
| |
|
virtual |
◆ pause()
| virtual void gBaseCanvas::pause |
( |
| ) |
|
|
virtual |
◆ removeAllSceneLights()
| void gBaseCanvas::removeAllSceneLights |
( |
| ) |
|
|
protected |
◆ removeSceneLight()
| void gBaseCanvas::removeSceneLight |
( |
gLight * |
light | ) |
|
|
protected |
◆ resume()
| virtual void gBaseCanvas::resume |
( |
| ) |
|
|
virtual |
◆ setColor() [1/2]
| void gBaseCanvas::setColor |
( |
gColor |
color | ) |
|
|
protected |
◆ setColor() [2/2]
| void gBaseCanvas::setColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a = 255 |
|
) |
| |
|
protected |
◆ setDepthTestFunc()
| void gBaseCanvas::setDepthTestFunc |
( |
int |
depthTestType | ) |
|
|
protected |
◆ setGlobalAmbientColor() [1/2]
| void gBaseCanvas::setGlobalAmbientColor |
( |
gColor |
color | ) |
|
|
protected |
◆ setGlobalAmbientColor() [2/2]
| void gBaseCanvas::setGlobalAmbientColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a = 255 |
|
) |
| |
|
protected |
◆ setGridColorofAxisWireFrameXY() [1/2]
| void gBaseCanvas::setGridColorofAxisWireFrameXY |
( |
gColor * |
color | ) |
|
|
protected |
◆ setGridColorofAxisWireFrameXY() [2/2]
| void gBaseCanvas::setGridColorofAxisWireFrameXY |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
|
protected |
◆ setGridColorofAxisWireFrameXZ() [1/2]
| void gBaseCanvas::setGridColorofAxisWireFrameXZ |
( |
gColor * |
color | ) |
|
|
protected |
◆ setGridColorofAxisWireFrameXZ() [2/2]
| void gBaseCanvas::setGridColorofAxisWireFrameXZ |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
|
protected |
◆ setGridColorofAxisWireFrameYZ() [1/2]
| void gBaseCanvas::setGridColorofAxisWireFrameYZ |
( |
gColor * |
color | ) |
|
|
protected |
◆ setGridColorofAxisWireFrameYZ() [2/2]
| void gBaseCanvas::setGridColorofAxisWireFrameYZ |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
|
protected |
◆ setGridColorofAxisXY() [1/2]
| void gBaseCanvas::setGridColorofAxisXY |
( |
gColor * |
color | ) |
|
|
protected |
◆ setGridColorofAxisXY() [2/2]
| void gBaseCanvas::setGridColorofAxisXY |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
|
protected |
◆ setGridColorofAxisXZ() [1/2]
| void gBaseCanvas::setGridColorofAxisXZ |
( |
gColor * |
color | ) |
|
|
protected |
◆ setGridColorofAxisXZ() [2/2]
| void gBaseCanvas::setGridColorofAxisXZ |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
|
protected |
◆ setGridColorofAxisYZ() [1/2]
| void gBaseCanvas::setGridColorofAxisYZ |
( |
gColor * |
color | ) |
|
|
protected |
◆ setGridColorofAxisYZ() [2/2]
| void gBaseCanvas::setGridColorofAxisYZ |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
|
protected |
◆ setGridEnableAxis()
| void gBaseCanvas::setGridEnableAxis |
( |
bool |
xy, |
|
|
bool |
yz, |
|
|
bool |
xz |
|
) |
| |
|
protected |
◆ setGridEnableXY()
| void gBaseCanvas::setGridEnableXY |
( |
bool |
xy | ) |
|
|
protected |
◆ setGridEnableXZ()
| void gBaseCanvas::setGridEnableXZ |
( |
bool |
xz | ) |
|
|
protected |
◆ setGridEnableYZ()
| void gBaseCanvas::setGridEnableYZ |
( |
bool |
yz | ) |
|
|
protected |
◆ setGridLineInterval()
| void gBaseCanvas::setGridLineInterval |
( |
float |
intervalvalue | ) |
|
|
protected |
◆ setGridMaxLength()
| void gBaseCanvas::setGridMaxLength |
( |
float |
length | ) |
|
|
protected |
◆ setLightingColor() [1/2]
| void gBaseCanvas::setLightingColor |
( |
gColor * |
color | ) |
|
|
protected |
◆ setLightingColor() [2/2]
| void gBaseCanvas::setLightingColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a = 255 |
|
) |
| |
|
protected |
◆ setLightingPosition()
| void gBaseCanvas::setLightingPosition |
( |
glm::vec3 |
lightingPosition | ) |
|
|
protected |
◆ setup()
| virtual void gBaseCanvas::setup |
( |
| ) |
|
|
virtual |
◆ showNotify()
| virtual void gBaseCanvas::showNotify |
( |
| ) |
|
|
virtual |
◆ update()
| virtual void gBaseCanvas::update |
( |
| ) |
|
|
virtual |
◆ windowResized()
| virtual void gBaseCanvas::windowResized |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
virtual |
◆ MOUSEBUTTON_LEFT
| const int gBaseCanvas::MOUSEBUTTON_LEFT |
|
static |
◆ MOUSEBUTTON_MIDDLE
| const int gBaseCanvas::MOUSEBUTTON_MIDDLE |
|
static |
◆ MOUSEBUTTON_RIGHT
| const int gBaseCanvas::MOUSEBUTTON_RIGHT |
|
static |
◆ root
The documentation for this class was generated from the following file: