|
Raylib C++
1.0.0
Encapsulates the raylib library
|
Helper class for drawing 3D shapes. More...
#include <Draw3DHelper.hpp>

Static Public Member Functions | |
| static void | drawLine (const Vector3f &startPos, const Vector3f &endPos, const RlColor &color) |
| Draw a line in 3D. More... | |
| static void | drawPoint (const Vector3f &position, const RlColor &color) |
| Draw a point in 3D. More... | |
| static void | drawCircle (const Vector3f ¢er, const float &radius, const Vector3f &rotationAxis, const float &rotationAngle, const RlColor &color) |
| Draw a circle in 3D. More... | |
| static void | drawTriangle3D (const Vector3f &v1, const Vector3f &v2, const Vector3f &v3, const RlColor &color) |
| Draw a color-filled triangle (vertex in counter-clockwise order!) in 3D. More... | |
| static void | drawTriangleStrip3D (const std::vector< Vector3f > &points, const RlColor &color) |
| Draw a triangle strip defined by points in 3D. More... | |
| static void | drawCube (const Vector3f &position, const float &width, const float &height, const float &length, const RlColor &color) |
| Draw a cube in 3D. More... | |
| static void | drawCube (const Vector3f &position, const Vector3f &size, const RlColor &color) |
| Draw a cube (Vector version) in 3D. More... | |
| static void | drawCubeWires (const Vector3f &position, const float &width, const float &height, const float &length, const RlColor &color) |
| Draw cube wires in 3D. More... | |
| static void | drawCubeWires (const Vector3f &position, const Vector3f &size, const RlColor &color) |
| Draw cube wires (Vector version) in 3D. More... | |
| static void | drawCubeTexture (const texture::RlTexture &texture, const Vector3f &position, const float &width, const float &height, const float &length, const RlColor &color) |
| Draw cube textured in 3D. More... | |
| static void | drawCubeTextureRec (const texture::RlTexture &texture, const Rectangle &source, const Vector3f &position, const float &width, const float &height, const float &length, const RlColor &color) |
| Draw cube with a region of a texture in 3D. More... | |
| static void | drawSphere (const Vector3f ¢erPos, const float &radius, const RlColor &color) |
| Draw a sphere in 3D. More... | |
| static void | drawSphere (const Vector3f ¢erPos, const float &radius, const int &rings, const int &slices, const RlColor &color) |
| Draw sphere with extended parameters in 3D. More... | |
| static void | drawSphereWires (const Vector3f ¢erPos, const float &radius, const int &rings, const int &slices, const RlColor &color) |
| Draw sphere wires in 3D. More... | |
| static void | drawCylinder (const Vector3f &position, const float &radiusTop, const float &radiusBottom, const float &height, const int &slices, const RlColor &color) |
| Draw a cylinder/cone in 3D. More... | |
| static void | drawCylinder (const Vector3f &startPos, const Vector3f &endPos, const float &startRadius, const float &endRadius, const int &sides, const RlColor &color) |
| Draw a cylinder with base at startPos and top at endPos in 3D. More... | |
| static void | drawCylinderWires (const Vector3f &position, const float &radiusTop, const float &radiusBottom, const float &height, const int &slices, const RlColor &color) |
| Draw a cylinder/cone wires in 3D. More... | |
| static void | drawCylinderWires (const Vector3f &startPos, const Vector3f &endPos, const float &startRadius, const float &endRadius, const int &sides, const RlColor &color) |
| Draw a cylinder wires with base at startPos and top at endPos in 3D. More... | |
| static void | drawPlane (const Vector3f ¢erPos, const Vector2f &size, const RlColor &color) |
| Draw a plane XZ in 3D. More... | |
| static void | drawRay (const Ray &ray, const RlColor &color) |
| Draw a ray line. More... | |
| static void | drawGrid (const int &slices, const float &spacing) |
| Draw a grid. More... | |
| static void | drawGrid (const Vector2i &size, const float &spacing) |
| Draw a grid of size (width/height) with some spacing, centered on (0, 0, 0) More... | |
| static void | drawGrid (const Vector2i &size, const Vector3f &position, const float &spacing) |
| Draw a grid of size (width/height) with some spacing, centered on position. More... | |
| static void | drawGrid (const Vector2i &size, const Vector3f &position, const float &spacing, const RlColor &color) |
| Draw a grid of size (width/height) with some spacing, centered on position, with a color. More... | |
| static void | drawBoundingBox (const BoundingBox &box, const RlColor &color) |
| Draw bounding box (wires) More... | |
| static void | drawBillboard (const RlCamera &camera, const texture::RlTexture &texture, const Vector3f &position, float size, const RlColor &tint) |
| Draw a billboard texture. More... | |
| static void | drawBillboardRec (const RlCamera &camera, const texture::RlTexture &texture, const Rectangle &source, const Vector3f &position, const Vector2f &size, const RlColor &tint) |
| Draw a billboard texture defined by source. More... | |
| static void | drawBillboardPro (const RlCamera &camera, const texture::RlTexture &texture, const Rectangle &source, const Vector3f &position, const Vector3f &up, const Vector2f &size, const Vector2f &origin, float rotation, const RlColor &tint) |
| Draw a billboard texture defined by source and rotation. More... | |
Helper class for drawing 3D shapes.
|
static |
Draw a billboard texture.
| camera | the camera to use |
| texture | the texture to use |
| position | the position of the billboard |
| size | the size of the billboard |
| tint | the tint of the billboard |

|
static |
Draw a billboard texture defined by source and rotation.
| camera | the camera to use |
| texture | the texture to use |
| source | the source of the texture |
| position | the position of the billboard |
| up | the up vector of the billboard |
| size | the size of the billboard |
| origin | the origin of the billboard |
| rotation | the rotation of the billboard |
| tint | the tint of the billboard |

|
static |
Draw a billboard texture defined by source.
| camera | the camera to use |
| texture | the texture to use |
| source | the source of the texture |
| position | the position of the billboard |
| size | the size of the billboard |
| tint | the tint of the billboard |
|
static |
Draw bounding box (wires)
| box | to use |
| color | to use |

|
static |
Draw a circle in 3D.
| center | the center of the circle |
| radius | the radius of the circle |
| rotationAxis | the rotation axis of the circle |
| rotationAngle | the rotation angle of the circle |
| color | the color of the circle |

|
static |
Draw a cube in 3D.
| position | the position of the cube |
| width | the width of the cube |
| height | the height of the cube |
| length | the length of the cube |
| color | the color of the cube |

|
static |
Draw a cube (Vector version) in 3D.
| position | the position of the cube |
| size | the size of the cube |
| color | the color of the cube |
|
static |
Draw cube textured in 3D.
| texture | the texture of the cube |
| position | the position of the cube |
| width | the width of the cube |
| height | the height of the cube |
| length | the length of the cube |
| color | the color of the cube |

|
static |
Draw cube with a region of a texture in 3D.
| texture | the texture of the cube |
| source | the source of the texture |
| position | the position of the cube |
| width | the width of the cube |
| height | the height of the cube |
| length | the length of the cube |
| color | the color of the cube |

|
static |
Draw cube wires in 3D.
| position | the position of the cube |
| width | the width of the cube |
| height | the height of the cube |
| length | the length of the cube |
| color | the color of the cube |

|
static |
Draw cube wires (Vector version) in 3D.
| position | the position of the cube |
| size | the size of the cube |
| color | the color of the cube |
|
static |
Draw a cylinder/cone in 3D.
| position | the position of the cylinder/cone |
| radiusTop | the radius of the top of the cylinder/cone |
| radiusBottom | the radius of the bottom of the cylinder/cone |
| height | the height of the cylinder/cone |
| slices | the number of slices |
| color | the color of the cylinder/cone |

|
static |
Draw a cylinder with base at startPos and top at endPos in 3D.
| startPos | the start position of the cylinder |
| endPos | the end position of the cylinder |
| startRadius | the start radius of the cylinder |
| endRadius | the end radius of the cylinder |
| sides | the number of sides |
| color | the color of the cylinder |

|
static |
Draw a cylinder/cone wires in 3D.
| position | the position of the cylinder/cone |
| radiusTop | the radius of the top of the cylinder/cone |
| radiusBottom | the radius of the bottom of the cylinder/cone |
| height | the height of the cylinder/cone |
| slices | the number of slices |
| color | the color of the cylinder/cone |

|
static |
Draw a cylinder wires with base at startPos and top at endPos in 3D.
| startPos | the start position of the cylinder |
| endPos | the end position of the cylinder |
| startRadius | the start radius of the cylinder |
| endRadius | the end radius of the cylinder |
| sides | the number of sides |
| color | the color of the cylinder |

|
static |
Draw a grid.
| slices | Number of slices of the grid |
| spacing | Spacing of the grid |

|
static |
Draw a grid of size (width/height) with some spacing, centered on (0, 0, 0)
| size | the size of the grid (width & height) |
| spacing | the spacing between each rect |
|
static |
Draw a grid of size (width/height) with some spacing, centered on position.
| size | the size of the grid (width & height) |
| position | the position of the grid |
| spacing | the spacing between each rect |
|
static |
Draw a grid of size (width/height) with some spacing, centered on position, with a color.
| size | the size of the grid (width & height) |
| position | the position of the grid |
| spacing | the spacing between each rect |
| color | the color of the grid |

|
static |
Draw a line in 3D.
| startPos | the start position of the line |
| endPos | the end position of the line |
| color | the color of the line |

|
static |
Draw a plane XZ in 3D.
| centerPos | the center position of the plane |
| size | the size of the plane |
| color | the color of the plane |

|
static |
Draw a point in 3D.
| position | the position of the point |
| color | the color of the point |

|
static |
Draw a ray line.
| ray | the ray to draw |
| color | the color of the ray |

|
static |
Draw sphere with extended parameters in 3D.
| centerPos | the center position of the sphere |
| radius | the radius of the sphere |
| rings | the number of rings |
| slices | the number of slices |
| color | the color of the sphere |

|
static |
Draw a sphere in 3D.
| centerPos | the center position of the sphere |
| radius | the radius of the sphere |
| color | the color of the sphere |
|
static |
Draw sphere wires in 3D.
| centerPos | the center position of the sphere |
| radius | the radius of the sphere |
| rings | the number of rings |
| slices | the number of slices |
| color | the color of the sphere |

|
static |
Draw a color-filled triangle (vertex in counter-clockwise order!) in 3D.
| v1 | the first vertex of the triangle |
| v2 | the second vertex of the triangle |
| v3 | the third vertex of the triangle |
| color | the color of the triangle |

|
static |
Draw a triangle strip defined by points in 3D.
| points | the points of the triangle strip |
| color | the color of the triangle strip |

1.8.17