The V Programming Language

Simple, fast, safe, compiled language for developing maintainable software
Install V from source in 0.5 seconds
wget && gcc -o v v.c

V's predeclared functions and types (including strings, arrays, maps)

Encoding and decoding of base64 as defined in RFC 4648
Hardware accelerated Graphics library using OpenGL (DirectX, Vulkan, Metal support soon)
OpenGL wrapper
Constants and helpers for drawing
Encoding and decoding of JSON as defined in RFC 7159
Basic constants and mathematical functions
Platform-independent interface to operating system functionality
Measuring and displaying time
Cross-platform UI library

This is a very early version of vlib. Many of the types and function signatures are going to change.

Generated with vdoc. Not sorted alphabetically yet.
fn new_shader(name string) Shader
fn (s Shader) use()
fn (s Shader) uni_location(key string) int
fn (s Shader) set_mat4(str string, m glm.Mat4)
fn (s Shader) set_int(str string, n int)
fn (s Shader) set_color(str string, c gx.Color)
fn viewport(a int, b int, c int, d int)
fn clear_color(r, g, b, a int)
fn clear()
fn create_shader(typ int) int
fn create_program() int
fn shader_source(shader int, a int, source string, b int)
fn compile_shader(shader int)
fn shader_compile_status(shader int) int
fn attach_shader(program int, shader int)
fn link_program(program int)
fn get_program_link_status(program int) int
fn delete_shader(shader int)
fn shader_info_log(shader int) string
fn get_program_info_log(program int) string
fn bind_vao(vao u32)
fn bind_buffer(typ int, vbo u32)
fn gen_texture() u32
fn active_texture(t int)
fn bind_2d_texture(texture u32)
fn delete_texture(texture u32)
fn buffer_data(typ int, size int, arr voidptr, draw_typ int)
fn buffer_data_int(typ int, vertices[]int, draw_typ int)
fn buffer_data_float(typ int, vertices[]float, draw_typ int)
fn set_vbo(vbo u32, vertices[]float, draw_typ int)
fn set_ebo(ebo u32, indices[]int, draw_typ int)
fn draw_arrays(typ, start, len int)
fn draw_elements(mode, count, typ, indices int)
fn use_program(program int)
fn gen_vertex_array() u32
fn enable_vertex_attrib_array(n int)
fn gen_buffer() u32
fn vertex_attrib_pointer(index, size int, typ int, normalized bool, stride int, ptr int)
fn tex_param(key, val int)
fn enable(val int)
fn disable(val int)
fn scissor(a, b, c, d int)
fn generate_mipmap(typ int)