52 object_3d * back = g_malloc0 (
sizeof*back);
53 back -> vert_buffer_size = 2;
54 back -> num_vertices = 4;
55 back -> vertices =
allocfloat (back -> vert_buffer_size*back -> num_vertices);
56 back -> vertices[0] = back -> vertices[1] = back -> vertices[3] = back -> vertices[4] = -1.0;
57 back -> vertices[2] = back -> vertices[5] = back -> vertices[6] = back -> vertices[7] = 1.0;
59 switch (
plot -> back -> gradient)
void create_background_lists()
prepare background OpenGL rendering
float * allocfloat(int val)
allocate a float * pointer
Global variable declarations Global convenience function declarations Global data structure defin...
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
void cleaning_shaders(glwin *view, int shader)
re-initialize an OpenGL shader
glsl_program * init_shader_program(int object, int object_id, const GLchar *vertex, const GLchar *geometry, const GLchar *fragment, GLenum type_of_vertices, int narray, int nunif, gboolean lightning, object_3d *obj)
create an OpenGL shader program
const GLchar * background_circular
const GLchar * background_vertex
const GLchar * background_linear