15
15
#include <stdio.h>
16
16
#include <stdlib.h>
17
17
18
+ #ifndef GLFW_TRUE
19
+ #define GLFW_TRUE 1
20
+ #endif
21
+
18
22
static void HandleGLFWError (int errorCode , const char * description );
19
23
static const void * LoadGLFunction (const char * name , void * userdata );
20
24
static void HandleKeypress (GLFWwindow * window , int key , int scancode , int action , int mods );
@@ -44,9 +48,11 @@ int main(int argc, const char **argv) {
44
48
PFGLDestFramebufferCreateFullWindow (& (PFVector2I ){640 , 480 });
45
49
PFGLRendererRef renderer = PFGLRendererCreate (PFGLDeviceCreate (PF_GL_VERSION_GL3 , 0 ),
46
50
PFFilesystemResourceLoaderLocate (),
47
- dest_framebuffer ,
51
+ & ( PFRendererMode ){ PF_RENDERER_LEVEL_D3D9 } ,
48
52
& (PFRendererOptions ){
49
- (PFColorF ){1.0 , 1.0 , 1.0 , 1.0 }, PF_RENDERER_OPTIONS_FLAGS_HAS_BACKGROUND_COLOR
53
+ dest_framebuffer ,
54
+ (PFColorF ){1.0 , 1.0 , 1.0 , 1.0 },
55
+ PF_RENDERER_OPTIONS_FLAGS_HAS_BACKGROUND_COLOR
50
56
});
51
57
52
58
// Make a canvas. We're going to draw a house.
@@ -72,7 +78,8 @@ int main(int argc, const char **argv) {
72
78
73
79
// Render the canvas to screen.
74
80
PFSceneRef scene = PFCanvasCreateScene (canvas );
75
- PFSceneProxyRef scene_proxy = PFSceneProxyCreateFromSceneAndRayonExecutor (scene );
81
+ PFSceneProxyRef scene_proxy =
82
+ PFSceneProxyCreateFromSceneAndRayonExecutor (scene , PF_RENDERER_LEVEL_D3D9 );
76
83
PFSceneProxyBuildAndRenderGL (scene_proxy , renderer , PFBuildOptionsCreate ());
77
84
glfwSwapBuffers (window );
78
85
0 commit comments