C++ openFrameworks addon wrapper for Vertex Arrays & Vertex Buffer Objects (coming soon) to allow Immediate mode style syntax on embedded systems / iPhone etc. (Probably now is superseded by built in ofMesh and ofVboMesh classes). Demo at www.memo.tv/msashape3d.
The code in this repository is available under the MIT License.
Copyright (c) 2008-2012 Memo Akten, www.memo.tv
The Mega Super Awesome Visuals Company
Copy to your openFrameworks/addons folder.
none
openFrameworks 0072
I am generally testing only with openFrameworks, however it should work with Cinder too. If it doesn't, please file an issue.
none
- compatible with OF0072
- renamed (uppercase) MSA namespace to (lowercase) msa. (kept MSA as an alias for backwards compatibility)
- move to centralized MSALibs
- everything is msa:: namespace
- seperated interface and implementation in header file
- fixed bug with normals and texture coordinates (thanks jonbro)
- restores all client states to how they were before modding (only in safe mode)
- changed license to revised BSD (a lot more more permissive than GPL)
-
renamed methods to avoid confusion with opengl functions:
- glVertex is now addVertex
- glColor is now setColor
- glNormal is now setNormal
- glTexCoord is now setTexCoord
- glBegin / glEnd are now begin / end
- glRect is now drawRect
-
added safeMode option (on by default)
-
with safeMode on (default):
- array is automatically reallocated when space runs out
- all client states are enabled and disabled as nessecary
-
with safeMode off (for advanced users) you can get much better performance if you know what to do, see docs.
-
lots of other optimizations and restructuring
-
all methods now inline
-
using normal arrays instead of vectors
- added draw() to redraw the cached shape
- added glRect()
- initial version