rombust
03-26-2010, 12:55 PM
(ClanLib 2.2 SVN)
I have updated the OpenGL defines to the 3.3 specification.
Also I have removed deprecated and removed features from the OpenGL 3.3 Specification (using the defines)
Except:
// Legacy defines to be removed when clanlib allows it
CL_MATRIX_MODE = 0x0BA0,
CL_MODELVIEW_MATRIX = 0x0BA6,
CL_PROJECTION_MATRIX = 0x0BA7,
CL_MODELVIEW = 0x1700,
CL_PROJECTION = 0x1701,
We need to decide the best way to do that. Personally I would write to a uniform "cl_modelview_matrix" and adjust the shaders accordingly.
The modified API is listed here:
Removal - CL_TextureDepthMode()
Removal - CL_Texture::[set][get]_generate_mipmap()
Revised - CL_DrawBuffer enum (removed AUX types)
Revised - CL_PrimitivesType enum (removed QUADS and POLYGON's)
Removal - CL_Pen::[is][enable]_point_antialiased()
Removal - CL_Pen::[is][enable]_using_point_sprites()
Removal - CL_Pen::[is][enable]_line_stippled()
Removal - CL_Pen::[get][set]_min_point_size()
Removal - CL_Pen::[get][set]_max_point_size()
Removal - CL_Pen::[get][set]_point_distance_attenuation()
Renamed - CL_TextureCompareMode::cl_comparemode_compare_r_to _texture to cl_comparemode_compare_ref_to_texture
Note: I have not updated the OpenGL functions yet.
The plan is to use only the functions in ClanLib-2.2\Sources\GL\opengl3_context.h
and put them in ClanLib-2.2\Sources\API\GL\opengl_wrap.h
(using a text editor macro to convert it into the correct format).
I have updated the OpenGL defines to the 3.3 specification.
Also I have removed deprecated and removed features from the OpenGL 3.3 Specification (using the defines)
Except:
// Legacy defines to be removed when clanlib allows it
CL_MATRIX_MODE = 0x0BA0,
CL_MODELVIEW_MATRIX = 0x0BA6,
CL_PROJECTION_MATRIX = 0x0BA7,
CL_MODELVIEW = 0x1700,
CL_PROJECTION = 0x1701,
We need to decide the best way to do that. Personally I would write to a uniform "cl_modelview_matrix" and adjust the shaders accordingly.
The modified API is listed here:
Removal - CL_TextureDepthMode()
Removal - CL_Texture::[set][get]_generate_mipmap()
Revised - CL_DrawBuffer enum (removed AUX types)
Revised - CL_PrimitivesType enum (removed QUADS and POLYGON's)
Removal - CL_Pen::[is][enable]_point_antialiased()
Removal - CL_Pen::[is][enable]_using_point_sprites()
Removal - CL_Pen::[is][enable]_line_stippled()
Removal - CL_Pen::[get][set]_min_point_size()
Removal - CL_Pen::[get][set]_max_point_size()
Removal - CL_Pen::[get][set]_point_distance_attenuation()
Renamed - CL_TextureCompareMode::cl_comparemode_compare_r_to _texture to cl_comparemode_compare_ref_to_texture
Note: I have not updated the OpenGL functions yet.
The plan is to use only the functions in ClanLib-2.2\Sources\GL\opengl3_context.h
and put them in ClanLib-2.2\Sources\API\GL\opengl_wrap.h
(using a text editor macro to convert it into the correct format).