twn_draw.c: draw_camera_2d()!
This commit is contained in:
1 parent
d9d7072c86
commit
d9df3f9b04
6 files changed
+63
-3
No files matched your search
@@ -81,6 +81,10 @@ TWN_API void draw_billboard(const char *texture,
|
||||
Color color, /* optional, default: all 255 */
|
||||
bool cylindrical); /* optional, default: false */
|
||||
|
||||
TWN_API void draw_camera_2d(Vec2 position, /* optional, default: (0, 0) */
|
||||
float rotation, /* optional, default: 0 */
|
||||
float zoom); /* optional, default: 1 */
|
||||
|
||||
/* sets a perspective 3d camera to be used for all 3d commands */
|
||||
/* fov = 0 corresponds to orthographic projection */
|
||||
TWN_API void draw_camera(Vec3 position,
|
||||
|
||||
Reference in new issue
Block a user