File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -334,10 +334,10 @@ typedef Camera3D Camera; // Camera type fallback, defaults to Camera3D
334334
335335// Camera2D, defines position/orientation in 2d space
336336typedef struct Camera2D {
337- Vector2 offset ; // Camera offset (displacement from target )
338- Vector2 target ; // Camera target (rotation and zoom origin )
339- float rotation ; // Camera rotation in degrees
340- float zoom ; // Camera zoom (scaling), should be 1.0f by default
337+ Vector2 offset ; // Camera offset (screen space offset from window origin )
338+ Vector2 target ; // Camera target (world space target point that is mapped to screen space offset )
339+ float rotation ; // Camera rotation in degrees (pivots around target)
340+ float zoom ; // Camera zoom (scaling around target ), must not be set to 0, set to 1.0f for no scale
341341} Camera2D ;
342342
343343// Mesh, vertex data and vao/vbo
You can’t perform that action at this time.
0 commit comments