|
| Light | DirectionalLight (const glm::vec3 &dir=glm::vec3(0), const glm::vec4 &color=glm::vec4(1)) |
| | Create a directional Light. More...
|
| |
| Light | DirectionalLight (const glm::vec3 &dir=glm::vec3(0), float r=1, float g=1, float b=1, float a=1) |
| | Create a directional Light. See DirectionalLight. More...
|
| |
| Entity | loadObj (const char *path, bool includeNormals, bool includeUVs) |
| |
| void | defKeyCB (GLFWwindow *window, int key, int scancode, int action, int mods) |
| | Default callback for key press. More...
|
| |
| void | defScrollCB (GLFWwindow *window, double xoffset, double yoffset) |
| | Default scroll callback. More...
|
| |
| void | defWindowSizeCB (GLFWwindow *window, int w, int h) |
| | Default window resize callback. More...
|
| |
| Entity | tetrahedron () |
| | Create a tetrahedron. More...
|
| |
| Entity | cube (bool calcNorm=false, bool calcUV=false) |
| | Create a cube. More...
|
| |
| Entity | cuboid (float x=2, float y=2, float z=2, bool calcNorm=false, bool calcUV=false) |
| | Create a cuboid. More...
|
| |
| Entity | octahedron () |
| | Create an octahedron. More...
|
| |
| Entity | dodecahedron () |
| | Create a dodecahedron. More...
|
| |
| Entity | icosahedron () |
| | Create an icosahedron. More...
|
| |
| Entity | sphere (int lat=20, int lng=20, bool calcNorm=false, bool calcUV=false) |
| | Create a unit sphere. More...
|
| |
| Entity | icosphere (int subdivision=3, bool calcNorm=false) |
| | Create a unit sphere. More...
|
| |
| Entity | cylinder (float r=1, float h=2, int strips=20) |
| | Create a cylinder. More...
|
| |
| Entity | plane (float x=2, float z=2, bool calcNorm=false, bool calcUV=false) |
| | Create a plane on the xz-plane. More...
|
| |
| Entity | tessellatedPlane (int l=10, int h=10) |
| | Create a plane on the xz-plane. More...
|
| |
| void | normalizeVertices (Entity &e, float t=1) |
| | Normalize all vertices of e. More...
|
| |
| void | subdivideFaces (Entity &e) |
| | Subdivide all faces of e. More...
|
| |
| void | calcNormals (Entity &e, bool perFace=false) |
| | Calculates the normals for the Entity algorithmically. More...
|
| |
| void | calcTextureCoords (Entity &e, glm::vec3 px=glm::vec3(.5, 0,.5), glm::vec3 py=glm::vec3(.5,.5, 0), bool normalize=false) |
| | Calculates texture coordinates for the Entity algorithmically. More...
|
| |
| std::vector< GLuint > | triangulatePolygon (const std::vector< GLuint > &polygon) |
| | Triangulates polygons with 3+ vertices. More...
|
| |
| GLuint | loadShaders (std::string vertShader, std::string fragShader) |
| | Load a pair of shaders. More...
|
| |
| GLuint | loadShadersFromFile (const char *vsPath, const char *fsPath) |
| | Load shaders from files. More...
|
| |
| std::string | readTextFile (const char *path) |
| | Reads a text file. More...
|
| |
| void | saveImage (const char *path, int w, int h) |
| | Save the current render as a ppm image. More...
|
| |