Cinder  0.9.1
Namespaces | Functions
draw.cpp File Reference
#include "cinder/gl/draw.h"
#include "cinder/gl/Context.h"
#include "cinder/gl/Vao.h"
#include "cinder/gl/VboMesh.h"
#include "cinder/gl/scoped.h"
#include "cinder/gl/Environment.h"
#include "cinder/Log.h"
#include "cinder/Text.h"
#include "cinder/Triangulate.h"

Namespaces

 cinder
 
 cinder::gl
 

Functions

void cinder::gl::draw (const VboMeshRef &mesh, GLint first=0, GLsizei count=-1)
 
void cinder::gl::drawArrays (GLenum mode, GLint first, GLsizei count)
 
void cinder::gl::drawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
 
void cinder::gl::drawCube (const vec3 &center, const vec3 &size)
 
void cinder::gl::drawColorCube (const vec3 &center, const vec3 &size)
 
void cinder::gl::drawStrokedCube (const vec3 &center, const vec3 &size)
 
void cinder::gl::draw (const Texture2dRef &texture, const Area &srcArea, const Rectf &dstRect)
 
void cinder::gl::draw (const Texture2dRef &texture, const Rectf &dstRect)
 
void cinder::gl::draw (const Texture2dRef &texture, const vec2 &dstOffset=vec2())
 
void cinder::gl::draw (const Path2d &path, float approximationScale=1.0f)
 
void cinder::gl::draw (const Shape2d &shape, float approximationScale=1.0f)
 
void cinder::gl::draw (const PolyLine2 &polyLine)
 
void cinder::gl::draw (const PolyLine3 &polyLine)
 
void cinder::gl::drawLine (const vec3 &a, const vec3 &b)
 
void cinder::gl::drawLine (const vec2 &a, const vec2 &b)
 
void cinder::gl::draw (const TriMesh &mesh)
 
void cinder::gl::draw (const geom::Source &source)
 
void cinder::gl::drawEquirectangular (const gl::TextureCubeMapRef &texture, const Rectf &r, float lod=-1)
 
void cinder::gl::drawHorizontalCross (const gl::TextureCubeMapRef &texture, const Rectf &rect, float lod=-1)
 
void cinder::gl::drawVerticalCross (const gl::TextureCubeMapRef &texture, const Rectf &rect, float lod=-1)
 
void cinder::gl::drawSolid (const Path2d &path2d, float approximationScale=1.0f)
 
void cinder::gl::drawSolid (const Shape2d &shape, float approximationScale=1.0f)
 
void cinder::gl::drawSolid (const PolyLine2 &polyLine)
 
void cinder::gl::drawSolidRect (const Rectf &r, const vec2 &upperLeftTexCoord=vec2(0, 1), const vec2 &lowerRightTexCoord=vec2(1, 0))
 
void cinder::gl::drawSolidRoundedRect (const Rectf &r, float cornerRadius, int numSegmentsPerCorner=0, const vec2 &upperLeftTexCoord=vec2(0, 1), const vec2 &lowerRightTexCoord=vec2(1, 0))
 
void cinder::gl::drawStrokedRect (const Rectf &rect)
 
void cinder::gl::drawStrokedRect (const Rectf &rect, float lineWidth)
 
void cinder::gl::drawStrokedRoundedRect (const Rectf &rect, float cornerRadius, int numSegmentsPerCorner=0)
 
void cinder::gl::drawStrokedCircle (const vec2 &center, float radius, int numSegments=-1)
 
void cinder::gl::drawStrokedCircle (const vec2 &center, float radius, float lineWidth, int numSegments=-1)
 
void cinder::gl::drawStrokedEllipse (const vec2 &center, float radiusX, float radiusY, int numSegments=-1)
 
void cinder::gl::drawSolidCircle (const vec2 &center, float radius, int numSegments=-1)
 
void cinder::gl::drawSolidEllipse (const vec2 &center, float radiusX, float radiusY, int numSegments=-1)
 
void cinder::gl::drawSolidTriangle (const vec2 pts[3])
 
void cinder::gl::drawSolidTriangle (const vec2 &pt0, const vec2 &pt1, const vec2 &pt2)
 
void cinder::gl::drawSolidTriangle (const vec2 &pt0, const vec2 &pt1, const vec2 &pt2, const vec2 &texPt0, const vec2 &texPt1, const vec2 &texPt2)
 
void cinder::gl::drawStrokedTriangle (const vec2 &pt0, const vec2 &pt1, const vec2 &pt2)
 
void cinder::gl::drawSolidTriangle (const vec2 pts[3], const vec2 texCoord[3]=nullptr)
 
void cinder::gl::drawSphere (const Sphere &sphere, int subdivisions=-1)
 
void cinder::gl::drawSphere (const vec3 &center, float radius, int subdivisions=-1)
 
void cinder::gl::drawBillboard (const vec3 &pos, const vec2 &scale, float rotationRadians, const vec3 &bbRight, const vec3 &bbUp, const Rectf &texCoords=Rectf(0, 0, 1, 1))
 
void cinder::gl::drawFrustum (const Camera &cam)
 
void cinder::gl::drawCoordinateFrame (float axisLength=1.0f, float headLength=0.2f, float headRadius=0.05f)
 
void cinder::gl::drawVector (const vec3 &start, const vec3 &end, float headLength=0.2f, float headRadius=0.05f)
 
void cinder::gl::drawString (const std::string &str, const vec2 &pos, const ColorA &color=ColorA(1, 1, 1, 1), Font font=Font())
 
void cinder::gl::drawStringCentered (const std::string &str, const vec2 &pos, const ColorA &color=ColorA(1, 1, 1, 1), Font font=Font())
 
void cinder::gl::drawStringRight (const std::string &str, const vec2 &pos, const ColorA &color=ColorA(1, 1, 1, 1), Font font=Font())
 

Variable Documentation

const geom::Source* mSource
Context* mContext
vector<geom::Attrib> mRequestedAttribs
vector<geom::Attrib> mReceivedAttribs
gl::VboRef mArrayVbo
gl::VboRef mElementVbo
const gl::GlslProg* mGlslProg
size_t mArrayVboOffset
GLenum mIndexType
std::unique_ptr<uint8_t[]> mTempStorage
size_t mTempStorageSizeBytes