init_vao   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm

Implementation

(bind-func init_vao
  (lambda ()
    (let ((num (* CUBE_W CUBE_H))
          (verts:float* (alloc (* 4 num)))
          (colours:float* (alloc (* 4 num)))
          (vbo_verts (VBO verts (* 4 num)))
          (vbo_colours (VBO colours (* 4 num)))
          (i 0) (j 0) (k 0))
      ;; set all to centre
      (dotimes (i (* 4 num)) (pset! verts i 0.0))
      ;; white colour
      (dotimes (i (* 4 num)) (pset! colours i 1.0))
      ;; setup vao
      (set_attribute DataVAO vbo_verts 0 4)
      (set_attribute DataVAO vbo_colours 3 4)
      (update vbo_verts)
      (update vbo_colours)
      void)))


Back to Index

Similar Entries

  • VAO    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VAO_bind_and_draw_arrays    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_bind_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_bind_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_create    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_create_ss_quad    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_delete    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • apr_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/apr.xtm
  • cef_init_app    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • cef_init_base    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • cef_init_browser    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • cef_init_client    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • cl:reduce-init    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • generate_random_vao    xtlang    /digego/extempore/tree/v0.8.9/examples/external/xtmrender4.xtm
  • glew_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/glew.xtm
  • glfw_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_compatibility_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_compatibility_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_interaction_compatibility_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_interaction_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_interaction_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_interaction_compatibility_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_interaction_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • gui_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • h3d_init    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/horde3d_knight.xtm
  • h3d_init    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/bullet.xtm
  • impc:compiler:print-no-redefinitions-error    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:initialize-closure-with-new-zone    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • init-gst    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • init-osc-vars    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • init-psys    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/particles.xtm
  • init-slides    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/slideshow.xtm
  • init_bodies    xtlang    /digego/extempore/tree/v0.8.9/examples/core/nbody_lang_shootout.xtm
  • init_burners    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • init_draw_quad    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • init_env_map    xtlang    /digego/extempore/tree/v0.8.9/examples/external/xtmrender6.xtm
  • init_gl    xtlang    /digego/extempore/tree/v0.8.9/examples/external/going-native.xtm
  • init_globals    xtlang    /digego/extempore/tree/v0.8.9/examples/core/fasta_lang_shootout.xtm
  • init_lv2_amp    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/lv2.xtm
  • init_sample_data    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • init_sample_data    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm
  • init_sky    xtlang    /digego/extempore/tree/v0.8.9/examples/external/xtmrender6.xtm
  • init_vg    xtlang    /digego/extempore/tree/v0.8.9/examples/external/going-native.xtm
  • initalize    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/hidapi.xtm
  • initialize_walkers    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/random-walk.xtm
  • lilv_init_world    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/lilv.xtm
  • node_reply_socket_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet-node.xtm
  • nvg_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/nanovg.xtm
  • pa_initialize    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portaudio.xtm
  • pm_initialize    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • pm_initialize    unknown    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • scheduler_init    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • some_gl_init    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • sys:compile-init-ll    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • sys:compile-init-ll-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • world_init    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • xtm_draw_vao    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_draw_vao    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_envmap_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_dof_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_light_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_quad_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_simple_bone_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_simple_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_skybox_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_skybox_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm