7 #include <ivorium_config.hpp>
11 #if IV_GLPLATFORM_GLFW
12 #include <GLFW/glfw3.h>
18 static bool l_initialized;
20 #if IV_GLPLATFORM_GLFW
21 static void glfw_error_callback(
int error,
const char * description )
35 #if IV_GLPLATFORM_GLFW
42 glfwSetErrorCallback( &glfw_error_callback );
46 FreeImage_Initialise();
49 StreamResourceProvider::RegisterType< DataStream_Subprovider, DataStream >();
50 StreamResourceProvider::RegisterType< StreamFont_Subprovider, Font, StreamFont >();
51 StreamResourceProvider::RegisterType< XcfInfo_Subprovider, XcfInfo >();
52 StreamResourceProvider::RegisterType< StreamTexture_Subprovider, Texture, StreamTexture >();
55 VirtualResourceProvider::RegisterType< FlatShader_Subprovider, FlatShader >();
56 VirtualResourceProvider::RegisterType< SquareMesh_Subprovider, Mesh, SquareMesh >();
61 FreeImage_DeInitialise();
62 #if IV_GLPLATFORM_GLFW