|
PGR Copakond OpenGL Engine - Bowling
|
#include <iostream>#include <algorithm>#include "pgr-portable.h"#include "meshes/mesh.h"#include "meshes/model/objMesh.h"#include "meshes/label/textLabel.h"#include "meshes/label/imageSequenceLabel.h"#include "geometry/camera.h"#include "light/light.h"#include "parser/input.h"#include "shaders/shader.h"#include "animation/spline.h"#include "animation/catmullroll.h"#include "animation/bezier.h"#include "meshes/collision/collisionBox.h"#include "meshes/collision/collisionSphere.h"#include "meshes/collision/rigidBody.h"#include "meshes/collision/rigidSphere.h"#include "meshes/label/imageLabel.h"#include "meshes/label/imageMoving.h"#include "meshes/model/skybox.h"#include "scenes/sample/sampleScene.h"#include "scenes/template/templateScene.h"#include "scenes/bowling/bowlingScene.h"#include "scenes/scene.h"Namespaces | |
| namespace | copakond |
| PGR Semestral work with sample scenes and bowling. doxygen was generated with a help of LLM. | |
Functions | |
| void | copakond::menuCallback (int option) |
| void | copakond::init () |
| Initializes OpenGL context, scene data, and sets up GLUT callbacks. | |
| void | copakond::draw () |
| Main render loop. Handles updates, physics, and rendering of all scene elements. | |
| void | copakond::keyboardInputEvent (unsigned char key, int x, int y) |
| void | copakond::specKeyboardInputEvent (int key, int x, int y) |
| void | copakond::keyboardUpInputEvent (unsigned char key, int x, int y) |
| void | copakond::specKeyboardUpInputEvent (int key, int x, int y) |
| void | copakond::mouseButtonEvent (int button, int state, int x, int y) |
| void | copakond::mouseMoveEvent (int x, int y) |
| void | copakond::mouseWheelEvent (int wheel, int direction, int x, int y) |
| void | copakond::screenResizeEvent (int width, int height) |
| Handles window resize events to maintain correct projection aspect ratio. | |
| int | main (int argc, char **argv) |
Variables | |
| float | copakond::SIMULATION_SPEED = 1.0f |
| int | copakond::winWidth = 1280 |
| int | copakond::winHeight = 720 |
| Shader * | copakond::shader |
| Input * | copakond::input |
| Scene * | copakond::currentScene |
| int main | ( | int | argc, |
| char ** | argv ) |