[cogl] Remove the COGL{enum,int,uint} typedefs
COGLenum, COGLint and COGLuint which were simply typedefs for GL{enum,int,uint} have been removed from the API and replaced with specialised enum typedefs, int and unsigned int. These were causing problems for generating bindings and also considered poor style. The cogl texture filter defines CGL_NEAREST and CGL_LINEAR etc are now replaced by a namespaced typedef 'CoglTextureFilter' so they should be replaced with COGL_TEXTURE_FILTER_NEAREST and COGL_TEXTURE_FILTER_LINEAR etc. The shader type defines CGL_VERTEX_SHADER and CGL_FRAGMENT_SHADER are handled by a CoglShaderType typedef and should be replaced with COGL_SHADER_TYPE_VERTEX and COGL_SHADER_TYPE_FRAGMENT. cogl_shader_get_parameteriv has been replaced by cogl_shader_get_type and cogl_shader_is_compiled. More getters can be added later if desired.
This commit is contained in:
@ -187,18 +187,18 @@ clutter_texture_quality_to_filters (ClutterTextureQuality quality,
|
||||
switch (quality)
|
||||
{
|
||||
case CLUTTER_TEXTURE_QUALITY_LOW:
|
||||
min_filter = CGL_NEAREST;
|
||||
mag_filter = CGL_NEAREST;
|
||||
min_filter = COGL_TEXTURE_FILTER_NEAREST;
|
||||
mag_filter = COGL_TEXTURE_FILTER_NEAREST;
|
||||
break;
|
||||
|
||||
case CLUTTER_TEXTURE_QUALITY_MEDIUM:
|
||||
min_filter = CGL_LINEAR;
|
||||
mag_filter = CGL_LINEAR;
|
||||
min_filter = COGL_TEXTURE_FILTER_LINEAR;
|
||||
mag_filter = COGL_TEXTURE_FILTER_LINEAR;
|
||||
break;
|
||||
|
||||
case CLUTTER_TEXTURE_QUALITY_HIGH:
|
||||
min_filter = CGL_LINEAR_MIPMAP_LINEAR;
|
||||
mag_filter = CGL_LINEAR;
|
||||
min_filter = COGL_TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR;
|
||||
mag_filter = COGL_TEXTURE_FILTER_LINEAR;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1891,7 +1891,7 @@ clutter_texture_async_load (ClutterTexture *self,
|
||||
* If #ClutterTexture:load-async is set to %TRUE, this function
|
||||
* will return as soon as possible, and the actual image loading
|
||||
* from disk will be performed asynchronously. #ClutterTexture::size-change
|
||||
* will be emitten when the size of the texture is available and
|
||||
* will be emitten when the size of the texture is available and
|
||||
* #ClutterTexture::load-finished will be emitted when the image has been
|
||||
* loaded or if an error occurred.
|
||||
*
|
||||
|
Reference in New Issue
Block a user