Added:
- SDL2 font support with
TextCache
. This uses aTexBillboard
to render text to a texture which can then be rendered. dot
product function.reflect
function.asLength
to return a value from the in-placesetLength
.- Add
taxiCabAngle
function. - Generated array operators now include
abs
and<=
. The latter enables>=
andmin
/max
for arrays.
Changed:
- When passed texture data
updateTexture
now defaults to freeing the existing texture before assigning the new one. normalise
functionality now works with theSDLDisplay
type.constrain
: usesGLvector
instead ofopenarray
.- Unroll
sqrLen
.
Added:
glRig
module provides templates to quickly create an interactive graphics application with OpenGL and SDL2.makeRectangleModel
creates a coloured rectangle model.
Fixed:
texturedemo.nim
incorrect bounds for spinSpeed.
- Added:
makePolyModel
allows construction of polygon models.rotate2d
androtated2d
utility procs.clearTexture
proc.
-
Added:
- Framebuffer support.
- Output detailed debug messages when compiling with
-d:debugGL
.
-
Changed:
models.nim
is nowmodelrenderer.nim
.init
forVertexBufferObject
now takes the index for the buffer.
-
Added:
mix
to blend between colours and arrays of floats.- You can now run model shader programs individually.
-
Fixed:
- Model rotation is now clockwise.
- Initial version supporting rendering with VBOs and shaders.