Added so that the Init_Color function is called.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1667 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
groogy 2010-11-17 11:51:02 +00:00
parent 8c45dc9d6b
commit 0994de8d23
2 changed files with 8 additions and 5 deletions

View File

@ -20,12 +20,12 @@
* source distribution.
*/
#ifndef SFML_RUBYEXT_CLOCK_HEADER_
#define SFML_RUBYEXT_CLOCK_HEADER_
#ifndef SFML_RUBYEXT_COLOR_HEADER_
#define SFML_RUBYEXT_COLOR_HEADER_
#include "ruby.h"
// Ruby initiation function
void Init_Clock( void );
void Init_Color( void );
#endif // SFML_RUBYEXT_CLOCK_HEADER_
#endif // SFML_RUBYEXT_COLOR_HEADER_

View File

@ -21,6 +21,7 @@
*/
#include "main.hpp"
#include "Color.hpp"
VALUE globalSFMLNamespace;
@ -50,7 +51,7 @@ VALUE RetrieveSFMLClass( const char * aName )
return rb_cvar_get( globalSFMLNamespace, name );
}
void Init_system( void )
void Init_graphics( void )
{
/* SFML namespace which contains the classes of this module. */
globalSFMLNamespace = rb_define_module( "SFML" );
@ -63,4 +64,6 @@ void Init_system( void )
globalWindowClass = RetrieveSFMLClass( "Window" );
rb_define_const(globalSFMLNamespace, "GraphicsLoaded", Qtrue);
Init_Color();
}