create_fbo_no_depth   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/opengl.xtm

Implementation

;; create and return a frame buffer struct (E_fbo)
;; if _texid is greater than 0 then use existing _texid
(bind-func create_fbo_no_depth
  (lambda (width:i32 height:i32 _texid:i32)
    (let ((texid:i32 0)
    (fboid:i32* (salloc))
    (fbo:E_fbo* (halloc))) ;; heap alloc
      (glGenFramebuffers 1 fboid)
      ;; bind the fbo
      (glBindFramebuffer GL_FRAMEBUFFER (pref fboid 0))
      (if (> _texid 0) (set! texid _texid))
      (set! texid (fbo_create_texture width height))
      ;; Attach the texture texid to the color buffer of our fbo
      (glFramebufferTexture2D GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_TEXTURE_2D texid 0)
      (tfill! fbo (pref fboid 0) texid -1 width height)
      (let ((status:i32 (glCheckFramebufferStatus GL_FRAMEBUFFER)))
  (printf "fb status %d\n" status)
  (if (<> status GL_FRAMEBUFFER_COMPLETE)
      (set! fbo (cast null E_fbo*))))
      (glClearColor 0.0 1.0 0.0 1.0)
      (glClear GL_COLOR_BUFFER_BIT)
      ;; unbind the frame buffer
      (glBindFramebuffer GL_FRAMEBUFFER 0)
      ;; return the extfbo struct
      fbo)))


Back to Index

Similar Entries

  • BTree_walk_inorder    xtlang
  • FBO    xtlang
  • FBO    xtlang
  • FBO    xtlang
  • FBO    xtlang
  • FBO    xtlang
  • FBO_color_texture    xtlang
  • FBO_create    xtlang
  • FBO_create_with_textures    xtlang
  • FBO_depth_texture    xtlang
  • FBO_height    xtlang
  • FBO_id    xtlang
  • FBO_width    xtlang
  • LFO_OPT_NOTEDUR    scheme
  • PARAM_NOISE_AMP    scheme
  • PARAM_NOISE_AMP    scheme
  • PARAM_NOISE_AMP    scheme
  • PARAM_Notch    scheme
  • PARAM_Notch    scheme
  • PmEvent_note_off_p    xtlang
  • PmEvent_note_on_p    xtlang
  • ShaderProgram_create    xtlang
  • ShaderProgram_create    xtlang
  • ShaderProgram_create    xtlang
  • ShaderProgram_create    xtlang
  • Shader_create    xtlang
  • Texture_create    xtlang
  • Texture_create_FBO_depth_texture    xtlang
  • VAO_create    xtlang
  • VAO_create_ss_quad    xtlang
  • VBO_create    xtlang
  • VBO_create    xtlang
  • VBO_create    xtlang
  • VBO_create    xtlang
  • Widget_find_inorder    xtlang
  • Widget_walk_inorder    xtlang
  • active_notes    xtlang
  • active_notes    xtlang
  • aiProcess_FixInfacingNormals    scheme
  • aiProcess_GenNormals    scheme
  • aiProcess_GenSmoothNormals    scheme
  • ai_build_node    xtlang
  • ai_find_matching_node    xtlang
  • analogueVec_note    xtlang
  • analogue_note    xtlang
  • apr_pool_create    xtlang
  • apr_pool_create    xtlang
  • basic_note    xtlang
  • binomial    macro
  • cerberus_create_lfos    xtlang
  • cerberus_get_noisetype    xtlang
  • cerberus_note    xtlang
  • cerberus_sub_noise_cc    xtlang
  • cl:delete-if-not    scheme
  • cl:notany    scheme
  • cl:notevery    scheme
  • cl:remove-if-not    scheme
  • close-note-gate    scheme
  • cpvnormalize    xtlang
  • create-zone    scheme
  • create-zone1    xtlang
  • create-zone2    xtlang
  • create_arrows_shader    xtlang
  • create_data    xtlang
  • create_fbo    xtlang
  • create_fbo_no_depth_rect    xtlang
  • create_fbo_rect    xtlang
  • create_heatmap_shader    xtlang
  • create_particles_shader    xtlang
  • create_points_shader    xtlang
  • create_post_process_shader    xtlang
  • create_raymarcher_shader    xtlang
  • create_shader    xtlang
  • create_shader_xtm    xtlang
  • create_shadertoy_shader    xtlang
  • create_texture_shader    xtlang
  • create_triangle_shader    xtlang
  • create_triangle_shader    xtlang
  • create_vbo    xtlang
  • create_walker_array    xtlang
  • depth_tex    xtlang
  • dl_noise_amp    xtlang
  • dl_noise_amp    xtlang
  • dlogue_note    xtlang
  • fbo_create_depth_buffer    xtlang
  • fbo_create_depth_buffer_rect    xtlang
  • fbo_create_texture    xtlang
  • fbo_create_texture_rect    xtlang
  • find_node    xtlang
  • fleet_connect_to_nodes    xtlang
  • fleet_message_all_nodes_sync    xtlang
  • fleet_message_node_sync    xtlang
  • fluid-cube-create    xtlang
  • fluid-cube-create    xtlang
  • fluid_cube_create    xtlang
  • fmsynth_note    xtlang
  • generate_tri_normals    xtlang
  • get-fbo    xtlang
  • get-fbo    xtlang
  • get_noise_amp    xtlang
  • get_noise_type    xtlang
  • get_noisetype    xtlang
  • gl_print_error_no_msg    xtlang
  • glfw_create_fullscreen_interaction_window    xtlang
  • glfw_create_fullscreen_interaction_window    xtlang
  • glfw_create_fullscreen_window    xtlang
  • glfw_create_fullscreen_window    xtlang
  • glfw_create_interaction_window    xtlang
  • glfw_create_window    xtlang
  • glfw_init_and_create_compatibility_window    xtlang
  • glfw_init_and_create_fullscreen_compatibility_window    xtlang
  • glfw_init_and_create_fullscreen_interaction_compatibility_window    xtlang
  • glfw_init_and_create_fullscreen_interaction_window    xtlang
  • glfw_init_and_create_fullscreen_interaction_window    xtlang
  • glfw_init_and_create_fullscreen_window    xtlang
  • glfw_init_and_create_fullscreen_window    xtlang
  • glfw_init_and_create_interaction_compatibility_window    xtlang
  • glfw_init_and_create_interaction_window    xtlang
  • glfw_init_and_create_window    xtlang
  • godot_node_path_destroy    xtlang
  • godot_node_path_new    xtlang
  • godot_variant_new_node_path    xtlang
  • gui_find_leaf_inorder    xtlang
  • gui_set_monokai_color_theme    xtlang
  • gui_set_monokai_opensans_theme    xtlang
  • homo-play-midi-note    scheme
  • homo-play-midi-note    scheme
  • impc:compiler:print-cannot-expand-non-generic-error    scheme
  • impc:compiler:print-could-not-resolve-generic-type-error    scheme
  • impc:compiler:print-could-not-resolve-type-error    scheme
  • impc:compiler:print-could-not-resolve-types    scheme
  • impc:compiler:print-could-not-resolve-types_find-expr    scheme
  • impc:compiler:print-no-redefinitions-error    scheme
  • impc:compiler:print-no-retval-error    scheme
  • impc:compiler:print-no-scheme-stub-notification    scheme
  • impc:compiler:print-no-valid-forms-for-generic-error    scheme
  • impc:compiler:print-not-during-aot-error    scheme
  • impc:compiler:print-variable-not-marked-as-free-error    scheme
  • impc:ir:compile:create_zone    scheme
  • impc:ir:get-ptr-depth    scheme
  • impc:ti:bitwise-not-to-eor    scheme
  • impc:ti:create-scheme-wrapper    scheme
  • impc:ti:create-scm-wrapper?    scheme
  • impc:ti:create_zone-check    scheme
  • impc:ti:get-mono-name    macro
  • impc:ti:not    scheme
  • impc:ti:type-normalize    scheme
  • instrument_find_note    xtlang
  • make_mono    xtlang
  • midi-note-off    scheme
  • midi-note-on    scheme
  • midi_note_off    xtlang
  • midi_note_off    xtlang
  • midi_note_off    xtlang
  • midi_note_on    xtlang
  • midi_note_on    xtlang
  • midi_note_on    xtlang
  • nnsock_create    xtlang
  • nnsock_create    xtlang
  • no title    macro
  • no title    unknown
  • no title    unknown
  • no title    unknown
  • no title    unknown
  • no title    unknown
  • node_reply_function    xtlang
  • node_reply_loop    xtlang
  • node_reply_loop_stop    xtlang
  • node_reply_socket_init    xtlang
  • nof    macro
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • normal    xtlang
  • note-active    xtlang
  • note-activity    xtlang
  • note-grad    xtlang
  • note-pitch    xtlang
  • nvg_create_context    xtlang
  • nvg_create_font    xtlang
  • pa_create_default_stream    xtlang
  • pa_create_stream    xtlang
  • peppino    scheme
  • peppino    scheme
  • play-midi-note    scheme
  • play-midi-note    scheme
  • play-note    scheme
  • pm_create_input_stream    xtlang
  • pm_create_output_stream    xtlang
  • psystem_create    xtlang
  • psystem_create    xtlang
  • qr_create_l    xtlang
  • qr_create_with_level    xtlang
  • rados-pool-create    xtlang
  • reduce-ptrdepth-to-zero    scheme
  • reload_ignore_cache    xtlang
  • sampler-parse-midinote-filename    scheme
  • sampler_note    xtlang
  • sampler_note_linear    xtlang
  • saw_synth_note_c    xtlang
  • saw_synth_note_c    xtlang
  • scientific-pitch-notation-to-midi-number    scheme
  • set_monophonic    xtlang
  • set_noise_amp    xtlang
  • set_noise_type    xtlang
  • start-note    scheme
  • stop-note    scheme
  • sub_noise_cc    xtlang
  • sys:with-noisy-compiler    macro
  • t:notype?    scheme
  • vnormalise    xtlang
  • vnormalise    xtlang
  • world_create    xtlang
  • xtm-vg-create-context    scheme
  • xtm_create_path    xtlang
  • xtm_create_vgimage    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_play_note    xtlang
  • xtm_point_along_path_norm    xtlang
  • xtm_release_note    xtlang
  • xtm_render_fbo    xtlang
  • xtm_shadow_fbo    xtlang
  • xtm_start_note    xtlang
  • xtm_stop_note    xtlang
  • xtm_vg_create_contextf    xtlang
  • xtm_vg_create_contexti32    xtlang
  • xtmdoc-strip-arg-type-annotations    scheme
  • xtmfrag_nolight    scheme