Sepehr Taghdisian avatar Sepehr Taghdisian committed f0f6b25

adding auto grid callback assignment function in gfx

Comments (0)

Files changed (3)


 /* callbacks for pyengine.i */
 void gfx_render_grid(gfx_cmdqueue cmdqueue, const struct gfx_view_params* params);
+ENGINE_API void gfx_set_gridcallback();
  * API
     gfx_canvas_grid(5.0f, 70.0f, params->cam);
+void gfx_set_gridcallback()
+    gfx_set_debug_renderfunc(gfx_render_grid);


 bool_t load_props()
     set_datadir();  /* important for loading resources */
     struct vec4f pos;   
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.