Added helper functions for Vector3 and Vector2. Made them also use the functions themselves and fixed a small bug in Vector3 where only 2 values would be set and not all 3 when doing any kind of arithmetics on them.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1672 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
5161f2a4ee
commit
712b64d168
4 changed files with 148 additions and 80 deletions
|
@ -25,6 +25,14 @@
|
|||
|
||||
#include "ruby.h"
|
||||
|
||||
VALUE Vector3_GetX( VALUE self );
|
||||
VALUE Vector3_GetY( VALUE self );
|
||||
VALUE Vector3_GetZ( VALUE self );
|
||||
|
||||
VALUE Vector3_SetX( VALUE self, VALUE aVal );
|
||||
VALUE Vector3_SetY( VALUE self, VALUE aVal );
|
||||
VALUE Vector3_SetZ( VALUE self, VALUE aVal );
|
||||
|
||||
VALUE Vector3_ForceType( VALUE someValue );
|
||||
|
||||
void Init_Vector3( void );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue