mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
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:
parent
8c45dc9d6b
commit
0994de8d23
@ -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_
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user