mirror of
https://github.com/brl/mutter.git
synced 2025-03-03 19:58:10 +00:00
Fix warnings in mesh tests
* tests/conform/test-mesh-mutability.c (on_paint): * tests/conform/test-mesh-interleved.c (on_paint): * tests/conform/test-mesh-contiguous.c (on_paint): Use g_usleep instead of sleep * tests/conform/test-mesh-mutability.c (queue_redraw): * tests/conform/test-mesh-interleved.c (queue_redraw): * tests/conform/test-mesh-contiguous.c (queue_redraw): Added missing return statement * clutter/cogl/cogl-mesh.h: Add a declaration for cogl_mesh_submit * clutter/cogl/common/cogl-mesh.c (cogl_mesh_submit): Move the documentation to cogl-mesh.h to match the rest of the functions
This commit is contained in:
parent
16897e0729
commit
1fd2156a99
20
ChangeLog
20
ChangeLog
@ -1,3 +1,23 @@
|
|||||||
|
2008-11-12 Neil Roberts <neil@linux.intel.com>
|
||||||
|
|
||||||
|
Fix warnings in mesh tests
|
||||||
|
|
||||||
|
* tests/conform/test-mesh-mutability.c (on_paint):
|
||||||
|
* tests/conform/test-mesh-interleved.c (on_paint):
|
||||||
|
* tests/conform/test-mesh-contiguous.c (on_paint): Use g_usleep
|
||||||
|
instead of sleep
|
||||||
|
|
||||||
|
* tests/conform/test-mesh-mutability.c (queue_redraw):
|
||||||
|
* tests/conform/test-mesh-interleved.c (queue_redraw):
|
||||||
|
* tests/conform/test-mesh-contiguous.c (queue_redraw): Added
|
||||||
|
missing return statement
|
||||||
|
|
||||||
|
* clutter/cogl/cogl-mesh.h: Add a declaration for
|
||||||
|
cogl_mesh_submit
|
||||||
|
|
||||||
|
* clutter/cogl/common/cogl-mesh.c (cogl_mesh_submit): Move the
|
||||||
|
documentation to cogl-mesh.h to match the rest of the functions
|
||||||
|
|
||||||
2008-11-10 Robert Bragg <robert@linux.intel.com>
|
2008-11-10 Robert Bragg <robert@linux.intel.com>
|
||||||
|
|
||||||
Bug 1164 - Implements the proposed Mesh API
|
Bug 1164 - Implements the proposed Mesh API
|
||||||
|
@ -262,6 +262,19 @@ cogl_mesh_draw_range_elements (CoglHandle handle,
|
|||||||
GLenum type,
|
GLenum type,
|
||||||
const GLvoid *indices);
|
const GLvoid *indices);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* cogl_mesh_submit:
|
||||||
|
* @handle: A Cogl mesh handle
|
||||||
|
*
|
||||||
|
* This function copies all the user added attributes into a buffer object
|
||||||
|
* managed by the OpenGL driver.
|
||||||
|
*
|
||||||
|
* After the attributes have been submitted, then you may no longer add or
|
||||||
|
* remove attributes from a mesh, though you can enable or disable them.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
cogl_mesh_submit (CoglHandle handle);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cogl_mesh_ref:
|
* cogl_mesh_ref:
|
||||||
* @handle: a @CoglHandle.
|
* @handle: a @CoglHandle.
|
||||||
|
@ -1094,16 +1094,6 @@ resolve_new_cogl_mesh_vbo (CoglMesh *mesh,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* cogl_mesh_submit:
|
|
||||||
* @handle: A Cogl mesh handle
|
|
||||||
*
|
|
||||||
* This function copies all the user added attributes into a buffer object
|
|
||||||
* managed by the OpenGL driver.
|
|
||||||
*
|
|
||||||
* After the attributes have been submitted, then you may no longer add or
|
|
||||||
* remove attributes from a mesh, though you can enable or disable them.
|
|
||||||
*/
|
|
||||||
void
|
void
|
||||||
cogl_mesh_submit (CoglHandle handle)
|
cogl_mesh_submit (CoglHandle handle)
|
||||||
{
|
{
|
||||||
|
@ -101,7 +101,7 @@ on_paint (ClutterActor *actor, TestState *state)
|
|||||||
if (state->frame >= 2)
|
if (state->frame >= 2)
|
||||||
validate_result (state);
|
validate_result (state);
|
||||||
else
|
else
|
||||||
sleep (1);
|
g_usleep (G_USEC_PER_SEC);
|
||||||
|
|
||||||
state->frame++;
|
state->frame++;
|
||||||
}
|
}
|
||||||
@ -110,6 +110,8 @@ static gboolean
|
|||||||
queue_redraw (gpointer stage)
|
queue_redraw (gpointer stage)
|
||||||
{
|
{
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (stage));
|
clutter_actor_queue_redraw (CLUTTER_ACTOR (stage));
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -76,7 +76,7 @@ on_paint (ClutterActor *actor, TestState *state)
|
|||||||
if (state->frame >= 2)
|
if (state->frame >= 2)
|
||||||
validate_result (state);
|
validate_result (state);
|
||||||
else
|
else
|
||||||
sleep (1);
|
g_usleep (G_USEC_PER_SEC);
|
||||||
|
|
||||||
state->frame++;
|
state->frame++;
|
||||||
}
|
}
|
||||||
@ -85,6 +85,8 @@ static gboolean
|
|||||||
queue_redraw (gpointer stage)
|
queue_redraw (gpointer stage)
|
||||||
{
|
{
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (stage));
|
clutter_actor_queue_redraw (CLUTTER_ACTOR (stage));
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -116,7 +116,7 @@ on_paint (ClutterActor *actor, TestState *state)
|
|||||||
if (state->frame >= 2)
|
if (state->frame >= 2)
|
||||||
validate_result (state);
|
validate_result (state);
|
||||||
else
|
else
|
||||||
sleep (1);
|
g_usleep (G_USEC_PER_SEC);
|
||||||
|
|
||||||
state->frame++;
|
state->frame++;
|
||||||
}
|
}
|
||||||
@ -125,6 +125,8 @@ static gboolean
|
|||||||
queue_redraw (gpointer stage)
|
queue_redraw (gpointer stage)
|
||||||
{
|
{
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (stage));
|
clutter_actor_queue_redraw (CLUTTER_ACTOR (stage));
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user