Commit Graph

13 Commits

Author SHA1 Message Date
a43102ee26 Rotate targetting reticule to mob. Add pivot point
Notion of pivot point now for rotating, i.e. the anchor point at which
rotations are applied. Rotating the reticule is done by using inverse
trigonometry, namely atan2f.
2016-07-23 21:26:15 +10:00
4f5270881f Add utility scripts for finding todos and statics 2016-07-20 17:15:31 +10:00
3e2287e13a Link avatar UI health display to hero health 2016-07-20 01:06:29 +10:00
d0b4c99787 Create empty texture idea, change function scopes
Some functions which should not be exposed in the API have been switched
to INTERNAL scope. We have a notion of an empty texture in World Traveller
that we can pass in situations where we just want to render a solid
colour with no associated texture.

The alternative to this was creating a separate shader for rendering
primitives but would require at some point to expose the AssetManager to
the renderer or the user on behalf has to manually switch shaders before
rendering (non-intuitive).
2016-07-16 17:15:03 +10:00
12fbc1000e Basic framework for scaling text, unimplemented 2016-07-15 18:34:23 +10:00
ea50aeb44e Allow color modulation of sprites, refactor renderer init 2016-07-09 16:08:03 +10:00
13a2152bf6 Correctly align text rendering to baseline 2016-07-07 22:30:06 +10:00
ef112fa4cb Flip font texture vertically on atlas creation 2016-06-29 14:04:35 +10:00
f53325cc6a Batch tiles to single vbo at render pass 2016-06-28 02:28:57 +10:00
d44ddf9371 Sprite switches direction, update vbo on render 2016-06-19 00:34:20 +10:00
bb57f080c9 Draw sprite from offset into tilesheet 2016-06-18 20:45:14 +10:00
d08cc4621b Add zooming by modifying fov in perspective matrix 2016-06-04 17:14:08 +10:00
540b871c58 Add camera linear rotation 2016-06-03 17:05:28 +10:00