lib

RLGL

:showdoc:

Constants

COMPUTE_SHADER = 37305
DYNAMIC_COPY = 35050
DYNAMIC_DRAW = 35048
DYNAMIC_READ = 35049
FLOAT = 5126
FRAGMENT_SHADER = 35632
LINES = 1
MODELVIEW = 5888
PROJECTION = 5889
QUADS = 7
RL_TEXTURE_MIN_FILTER = 10241
STATIC_COPY = 35046
STATIC_DRAW = 35044
STATIC_READ = 35045
STREAM_COPY = 35042
STREAM_DRAW = 35040
STREAM_READ = 35041
TEXTURE = 5890
TEXTURE_FILTER_ANISOTROPIC = 12288
TEXTURE_FILTER_LINEAR = 9729
TEXTURE_FILTER_LINEAR_MIP_NEAREST = 9985
TEXTURE_FILTER_MIP_LINEAR = 9987
TEXTURE_FILTER_MIP_NEAREST = 9984
TEXTURE_FILTER_NEAREST = 9728
TEXTURE_FILTER_NEAREST_MIP_LINEAR = 9986
TEXTURE_MAG_FILTER = 10240
TEXTURE_MIPMAP_BIAS_RATIO = 16384
TEXTURE_WRAP_CLAMP = 33071
TEXTURE_WRAP_MIRROR_CLAMP = 34626
TEXTURE_WRAP_MIRROR_REPEAT = 33648
TEXTURE_WRAP_REPEAT = 10497
TEXTURE_WRAP_S = 10242
TEXTURE_WRAP_T = 10243
TRIANGLES = 4
UNSIGNED_BYTE = 5121
VERTEX_SHADER = 35633

Class methods

active_draw_buffers(count : Int32)
Source
active_texture_slot(slot : Int32)
Source
begin(mode : Int32)
Source
bind_image_texture(id : UInt32, index : UInt32, format : UInt32, readonly : Int32)
Source
bind_shader_buffer(id : UInt32, index : UInt32)
Source
blit_framebuffer(src_x : Int32, src_y : Int32, src_width : Int32, src_height : Int32, dst_x : Int32, dst_y : Int32, dst_width : Int32, dst_height : Int32, buffer_mask : Int32)
Source
check_render_batch_limit(v_count : Int32) : Bool
Source
clean_screen_buffers
Source
clear_color(r : UInt8, g : UInt8, b : UInt8, a : UInt8)
Source
clear_errors
Source
close(width : Int32, height : Int32)
Source
color_3f(x : Float32, y : Float32, z : Float32)
Source
color_4f(x : Float32, y : Float32, z : Float32, w : Float32)
Source
color_4ub(r : UInt8, g : UInt8, b : UInt8, a : UInt8)
Source
compile_shader(shader_code : Pointer(UInt8), type : Int32) : LibC::UInt
Source
compute_shader_dispatch(group_x : UInt32, group_y : UInt32, group_z : UInt32)
Source
copy_shader_buffer(dst_id : UInt32, src_id : UInt32, dst_offset : UInt32, src_offset : UInt32, count : UInt32)
Source
disable_backface_culling
Source
disable_color_blend
Source
disable_depth_mask
Source
disable_depth_test
Source
disable_frame_buffer
Source
disable_scissor_test
Source
disable_shader
Source
disable_smooth_lines
Source
disable_stereo_render
Source
disable_texture
Source
disable_texture_cubemap
Source
disable_vertex_array
Source
disable_vertex_buffer
Source
disable_vertex_buffer_attribute
Source
disable_vertex_buffer_element
Source
disable_wire_mode
Source
draw_render_batch(batch : Pointer(RLGL::RenderBatch))
Source
draw_render_batch_active
Source
draw_vertex_array(offset : Int32, count : Int32)
Source
draw_vertex_array_elements(offset : Int32, count : Int32, buffer : Pointer(Void))
Source
draw_vertex_array_elements_instanced(offset : Int32, count : Int32, buffer : Pointer(Void), instances : Int32)
Source
draw_vertex_array_instanced(offset : Int32, count : Int32, buffer : Pointer(Void), instances : Int32)
Source
enable_backface_culling
Source
enable_color_blend
Source
enable_depth_mask
Source
enable_depth_test
Source
enable_frame_buffer(id : UInt32)
Source
enable_point_mode
Source
enable_scissor_test
Source
enable_shader(id : UInt32)
Source
enable_smooth_lines
Source
enable_stereo_render
Source
enable_texture(id : UInt32)
Source
enable_texture_cubemap(id : UInt32)
Source
enable_vertex_array(vao_id : UInt32) : Bool
Source
enable_vertex_buffer(id : UInt32)
Source
enable_vertex_buffer_attribute(id : UInt32)
Source
enable_vertex_buffer_element(id : UInt32)
Source
enable_wire_mode
Source
framebuffer_attach(fbo_id : UInt32, tex_id : UInt32, attach_type : Int32, text_type : Int32, mip_level : Int32)
Source
framebuffer_complete(id : UInt32) : Bool
Source
frustrum(left : Float64, right : Float64, bottom : Float64, top : Float64, znear : Float64, zfar : Float64)
Source
gen_texture_mipmaps(id : UInt32, width : Int32, height : Int32, format : Int32, mipmaps : Pointer(Int32))
Source
get_framebuffer_height
Source
get_framebuffer_width
Source
get_gl_texture_formats(format : Int32, gl_internal_format : Pointer(UInt32), gl_format : Pointer(UInt32), gl_type : Pointer(UInt32))
Source
get_line_width
Source
get_location_attrib(shader_id : UInt32, attrib_name : Pointer(UInt8))
Source
get_location_uniform(shader_id : UInt32, uniform_name : Pointer(UInt8)) : LibC::Int
Source
get_matrix_modelview
Source
get_matrix_projection
Source
get_matrix_projection_stereo(eye : Int32) : Raylib::Matrix
Source
get_matrix_transform
Source
get_matrix_view_offset_stereo(eye : Int32) : Raylib::Matrix
Source
get_pixel_format_name(format : UInt32) : Pointer(LibC::Char)
Source
get_shader_buffer_size(id : UInt32) : LibC::ULongLong
Source
get_shader_id_default
Source
get_shader_locs_default
Source
get_texture_id_default
Source
get_version
Source
init(width : Int32, height : Int32)
Source
load_compute_shader_program(shader_id : UInt32) : LibC::UInt
Source
load_draw_cube
Source
load_draw_quad
Source
load_extensions(loader : Pointer(Void))
Source
load_framebuffer(width : Int32, height : Int32) : LibC::UInt
Source
load_identity
Source
load_render_batch(num_buffers : Int32, buffer_elements : Int32) : RenderBatch
Source
load_shader_buffer(size : UInt32, data : Pointer(Void), usage_hint : Int32) : LibC::UInt
Source
load_shader_code(vscode : Pointer(UInt8), fscode : Pointer(UInt8)) : LibC::UInt
Source
load_shader_program(v_shader_id : UInt32, f_shader_id : UInt32) : LibC::UInt
Source
load_texture(data : Pointer(Void), width : Int32, height : Int32, format : Int32, mimmap_count : Int32) : LibC::UInt
Source
load_texture_cubemap(data : Pointer(Void), size : Int32, format : Int32) : LibC::UInt
Source
load_texture_depth(width : Int32, height : Int32, use_render_buffer : Bool) : LibC::UInt
Source
load_vertex_array
Source
load_vertex_buffer(buffer : Pointer(Void), size : Int32, dynamic : Bool) : LibC::UInt
Source
load_vertex_buffer_element(buffer : Pointer(Void), size : Int32, dynamic : Bool) : LibC::UInt
Source
matrix_mode(mode : Int32)
Source
multi_matrix_f
Source
normal_3f(x : Float32, y : Float32, z : Float32)
Source
ortho(left : Float64, right : Float64, bottom : Float64, top : Float64, znear : Float64, zfar : Float64)
Source
pop_matrix
Source
push_matrix
Source
read_screen_pixels(width : Int32, height : Int32) : Pointer(LibC::UChar)
Source
read_shader_buffer(id : UInt32, dest : Pointer(Void), count : UInt32, offset : UInt32)
Source
read_texture_pixels(id : UInt32, width : Int32, height : Int32, format : Int32) : Pointer(Void)
Source
rotate_f(angle : Float32, x : Float32, y : Float32, z : Float32)
Source
scale_f(x : Float32, y : Float32, z : Float32)
Source
scissor(x : Int32, y : Int32, w : Int32, h : Int32)
Source
set_blend_factors(gl_src_factor : Int32, gl_dst_factor : Int32, gl_equation : Int32)
Source
set_blend_factors_separate(gl_src_factor : Int32, gl_dst_rgb : Int32, gl_dst_alpha : Int32, gl_equation_rgb : Int32, gl_equation_alpha : Int32)
Source
set_blend_mode(mode : Int32)
Source
set_framebuffer_height(height : Int32) : LibC::Int
Source
set_framebuffer_width(width : Int32) : LibC::Int
Source
set_line_width(width : Float32)
Source
set_matrix_modelview(view : Raylib::Matrix)
Source
set_matrix_projection(proj : Raylib::Matrix)
Source
set_matrix_projection_stereo(right : Raylib::Matrix, left : Raylib::Matrix)
Source
set_matrix_view_offset_stereo(right : Raylib::Matrix, left : Raylib::Matrix)
Source
set_render_batch_active(batch : Pointer(RLGL::RenderBatch))
Source
set_shader(id : UInt32, locs : Pointer(Int32))
Source
set_texture(id : UInt32)
Source
set_uniform(loc_index : Int32, value : Pointer(Void), uniform_type : Int32, count : Int32)
Source
set_uniform_matrix(loc_index : Int32, mat : Raylib::Matrix)
Source
set_uniform_sampler(loc_index : Int32, texture_id : UInt32)
Source
set_vertex_attribute(index : UInt32, comp_size : Int32, type : Int32, normalized : Bool, stride : Int32, pointer : Pointer(Void))
Source
set_vertex_attribute_default(loc_index : Int32, value : Pointer(Void), attrib_type : Int32, count : Int32)
Source
set_vertex_attribute_divisor(index : UInt32, divisor : Int32)
Source
stereo_render_enabled?
Source
texcoord_2f(x : Float32, y : Float32)
Source
texture_parameters(id : UInt32, param : Int32, value : Int32)
Source
translate_f(x : Float32, y : Float32, z : Float32)
Source
unload_framebuffer(id : UInt32)
Source
unload_render_batch(batch : RLGL::RenderBatch)
Source
unload_shader_buffer(ssbo_id : UInt32)
Source
unload_shader_program(id : UInt32)
Source
unload_texture_rlgl(id : UInt32)
Source
unload_vertex_array(vao_id : UInt32)
Source
unload_vertex_buffer(vbo_id : UInt32)
Source
update_shader_buffer(id : UInt32, data : Pointer(Void), data_size : UInt32, offset : UInt32)
Source
update_texture(id : UInt32, offset_x : Int32, offset_y : Int32, width : Int32, height : Int32, format : Int32, data : Pointer(Void))
Source
update_vertex_buffer(buffer_id : UInt32, data : Pointer(Void), data_size : Int32, offset : Int32)
Source
update_vertex_buffer_elements(id : UInt32, data : Pointer(Void), data_size : Int32, offset : Int32)
Source
vertex_2f(x : Float32, y : Float32)
Source
vertex_2i(x : Int32, y : Int32)
Source
vertex_3f(x : Float32, y : Float32, z : Float32)
Source
viewport(x : Int32, y : Int32, width : Int32, height : Int32)
Source

Instance methods

active_draw_buffers(count : Int32)
Source
active_texture_slot(slot : Int32)
Source
begin(mode : Int32)
Source
bind_image_texture(id : UInt32, index : UInt32, format : UInt32, readonly : Int32)
Source
bind_shader_buffer(id : UInt32, index : UInt32)
Source
blit_framebuffer(src_x : Int32, src_y : Int32, src_width : Int32, src_height : Int32, dst_x : Int32, dst_y : Int32, dst_width : Int32, dst_height : Int32, buffer_mask : Int32)
Source
check_render_batch_limit(v_count : Int32) : Bool
Source
clean_screen_buffers
Source
clear_color(r : UInt8, g : UInt8, b : UInt8, a : UInt8)
Source
clear_errors
Source
close(width : Int32, height : Int32)
Source
color_3f(x : Float32, y : Float32, z : Float32)
Source
color_4f(x : Float32, y : Float32, z : Float32, w : Float32)
Source
color_4ub(r : UInt8, g : UInt8, b : UInt8, a : UInt8)
Source
compile_shader(shader_code : Pointer(UInt8), type : Int32) : LibC::UInt
Source
compute_shader_dispatch(group_x : UInt32, group_y : UInt32, group_z : UInt32)
Source
copy_shader_buffer(dst_id : UInt32, src_id : UInt32, dst_offset : UInt32, src_offset : UInt32, count : UInt32)
Source
disable_backface_culling
Source
disable_color_blend
Source
disable_depth_mask
Source
disable_depth_test
Source
disable_frame_buffer
Source
disable_scissor_test
Source
disable_shader
Source
disable_smooth_lines
Source
disable_stereo_render
Source
disable_texture
Source
disable_texture_cubemap
Source
disable_vertex_array
Source
disable_vertex_buffer
Source
disable_vertex_buffer_attribute
Source
disable_vertex_buffer_element
Source
disable_wire_mode
Source
draw_render_batch(batch : Pointer(RLGL::RenderBatch))
Source
draw_render_batch_active
Source
draw_vertex_array(offset : Int32, count : Int32)
Source
draw_vertex_array_elements(offset : Int32, count : Int32, buffer : Pointer(Void))
Source
draw_vertex_array_elements_instanced(offset : Int32, count : Int32, buffer : Pointer(Void), instances : Int32)
Source
draw_vertex_array_instanced(offset : Int32, count : Int32, buffer : Pointer(Void), instances : Int32)
Source
enable_backface_culling
Source
enable_color_blend
Source
enable_depth_mask
Source
enable_depth_test
Source
enable_frame_buffer(id : UInt32)
Source
enable_point_mode
Source
enable_scissor_test
Source
enable_shader(id : UInt32)
Source
enable_smooth_lines
Source
enable_stereo_render
Source
enable_texture(id : UInt32)
Source
enable_texture_cubemap(id : UInt32)
Source
enable_vertex_array(vao_id : UInt32) : Bool
Source
enable_vertex_buffer(id : UInt32)
Source
enable_vertex_buffer_attribute(id : UInt32)
Source
enable_vertex_buffer_element(id : UInt32)
Source
enable_wire_mode
Source
framebuffer_attach(fbo_id : UInt32, tex_id : UInt32, attach_type : Int32, text_type : Int32, mip_level : Int32)
Source
framebuffer_complete(id : UInt32) : Bool
Source
frustrum(left : Float64, right : Float64, bottom : Float64, top : Float64, znear : Float64, zfar : Float64)
Source
gen_texture_mipmaps(id : UInt32, width : Int32, height : Int32, format : Int32, mipmaps : Pointer(Int32))
Source
get_framebuffer_height
Source
get_framebuffer_width
Source
get_gl_texture_formats(format : Int32, gl_internal_format : Pointer(UInt32), gl_format : Pointer(UInt32), gl_type : Pointer(UInt32))
Source
get_line_width
Source
get_location_attrib(shader_id : UInt32, attrib_name : Pointer(UInt8))
Source
get_location_uniform(shader_id : UInt32, uniform_name : Pointer(UInt8)) : LibC::Int
Source
get_matrix_modelview
Source
get_matrix_projection
Source
get_matrix_projection_stereo(eye : Int32) : Raylib::Matrix
Source
get_matrix_transform
Source
get_matrix_view_offset_stereo(eye : Int32) : Raylib::Matrix
Source
get_pixel_format_name(format : UInt32) : Pointer(LibC::Char)
Source
get_shader_buffer_size(id : UInt32) : LibC::ULongLong
Source
get_shader_id_default
Source
get_shader_locs_default
Source
get_texture_id_default
Source
get_version
Source
init(width : Int32, height : Int32)
Source
load_compute_shader_program(shader_id : UInt32) : LibC::UInt
Source
load_draw_cube
Source
load_draw_quad
Source
load_extensions(loader : Pointer(Void))
Source
load_framebuffer(width : Int32, height : Int32) : LibC::UInt
Source
load_identity
Source
load_render_batch(num_buffers : Int32, buffer_elements : Int32) : RenderBatch
Source
load_shader_buffer(size : UInt32, data : Pointer(Void), usage_hint : Int32) : LibC::UInt
Source
load_shader_code(vscode : Pointer(UInt8), fscode : Pointer(UInt8)) : LibC::UInt
Source
load_shader_program(v_shader_id : UInt32, f_shader_id : UInt32) : LibC::UInt
Source
load_texture(data : Pointer(Void), width : Int32, height : Int32, format : Int32, mimmap_count : Int32) : LibC::UInt
Source
load_texture_cubemap(data : Pointer(Void), size : Int32, format : Int32) : LibC::UInt
Source
load_texture_depth(width : Int32, height : Int32, use_render_buffer : Bool) : LibC::UInt
Source
load_vertex_array
Source
load_vertex_buffer(buffer : Pointer(Void), size : Int32, dynamic : Bool) : LibC::UInt
Source
load_vertex_buffer_element(buffer : Pointer(Void), size : Int32, dynamic : Bool) : LibC::UInt
Source
matrix_mode(mode : Int32)
Source
multi_matrix_f
Source
normal_3f(x : Float32, y : Float32, z : Float32)
Source
ortho(left : Float64, right : Float64, bottom : Float64, top : Float64, znear : Float64, zfar : Float64)
Source
pop_matrix
Source
push_matrix
Source
read_screen_pixels(width : Int32, height : Int32) : Pointer(LibC::UChar)
Source
read_shader_buffer(id : UInt32, dest : Pointer(Void), count : UInt32, offset : UInt32)
Source
read_texture_pixels(id : UInt32, width : Int32, height : Int32, format : Int32) : Pointer(Void)
Source
rotate_f(angle : Float32, x : Float32, y : Float32, z : Float32)
Source
scale_f(x : Float32, y : Float32, z : Float32)
Source
scissor(x : Int32, y : Int32, w : Int32, h : Int32)
Source
set_blend_factors(gl_src_factor : Int32, gl_dst_factor : Int32, gl_equation : Int32)
Source
set_blend_factors_separate(gl_src_factor : Int32, gl_dst_rgb : Int32, gl_dst_alpha : Int32, gl_equation_rgb : Int32, gl_equation_alpha : Int32)
Source
set_blend_mode(mode : Int32)
Source
set_framebuffer_height(height : Int32) : LibC::Int
Source
set_framebuffer_width(width : Int32) : LibC::Int
Source
set_line_width(width : Float32)
Source
set_matrix_modelview(view : Raylib::Matrix)
Source
set_matrix_projection(proj : Raylib::Matrix)
Source
set_matrix_projection_stereo(right : Raylib::Matrix, left : Raylib::Matrix)
Source
set_matrix_view_offset_stereo(right : Raylib::Matrix, left : Raylib::Matrix)
Source
set_render_batch_active(batch : Pointer(RLGL::RenderBatch))
Source
set_shader(id : UInt32, locs : Pointer(Int32))
Source
set_texture(id : UInt32)
Source
set_uniform(loc_index : Int32, value : Pointer(Void), uniform_type : Int32, count : Int32)
Source
set_uniform_matrix(loc_index : Int32, mat : Raylib::Matrix)
Source
set_uniform_sampler(loc_index : Int32, texture_id : UInt32)
Source
set_vertex_attribute(index : UInt32, comp_size : Int32, type : Int32, normalized : Bool, stride : Int32, pointer : Pointer(Void))
Source
set_vertex_attribute_default(loc_index : Int32, value : Pointer(Void), attrib_type : Int32, count : Int32)
Source
set_vertex_attribute_divisor(index : UInt32, divisor : Int32)
Source
stereo_render_enabled?
Source
texcoord_2f(x : Float32, y : Float32)
Source
texture_parameters(id : UInt32, param : Int32, value : Int32)
Source
translate_f(x : Float32, y : Float32, z : Float32)
Source
unload_framebuffer(id : UInt32)
Source
unload_render_batch(batch : RLGL::RenderBatch)
Source
unload_shader_buffer(ssbo_id : UInt32)
Source
unload_shader_program(id : UInt32)
Source
unload_texture_rlgl(id : UInt32)
Source
unload_vertex_array(vao_id : UInt32)
Source
unload_vertex_buffer(vbo_id : UInt32)
Source
update_shader_buffer(id : UInt32, data : Pointer(Void), data_size : UInt32, offset : UInt32)
Source
update_texture(id : UInt32, offset_x : Int32, offset_y : Int32, width : Int32, height : Int32, format : Int32, data : Pointer(Void))
Source
update_vertex_buffer(buffer_id : UInt32, data : Pointer(Void), data_size : Int32, offset : Int32)
Source
update_vertex_buffer_elements(id : UInt32, data : Pointer(Void), data_size : Int32, offset : Int32)
Source
vertex_2f(x : Float32, y : Float32)
Source
vertex_2i(x : Int32, y : Int32)
Source
vertex_3f(x : Float32, y : Float32, z : Float32)
Source
viewport(x : Int32, y : Int32, width : Int32, height : Int32)
Source