cogl-shader: Add deprecation guards for cogl_program_uniform_*

This commit is contained in:
Emmanuele Bassi 2010-09-03 16:56:12 +01:00
parent abef73bb58
commit 7abe63953e

View File

@ -363,6 +363,8 @@ cogl_program_set_uniform_matrix (CoglHandle program,
gboolean transpose, gboolean transpose,
const float *value); const float *value);
#ifndef COGL_DISABLE_DEPRECATED
/** /**
* cogl_program_uniform_1f: * cogl_program_uniform_1f:
* @uniform_no: the uniform to set. * @uniform_no: the uniform to set.
@ -375,7 +377,7 @@ cogl_program_set_uniform_matrix (CoglHandle program,
*/ */
void void
cogl_program_uniform_1f (int uniform_no, cogl_program_uniform_1f (int uniform_no,
float value); float value) G_GNUC_DEPRECATED;
/** /**
* cogl_program_uniform_1i: * cogl_program_uniform_1i:
@ -389,7 +391,7 @@ cogl_program_uniform_1f (int uniform_no,
*/ */
void void
cogl_program_uniform_1i (int uniform_no, cogl_program_uniform_1i (int uniform_no,
int value); int value) G_GNUC_DEPRECATED;
/** /**
* cogl_program_uniform_float: * cogl_program_uniform_float:
@ -407,7 +409,7 @@ void
cogl_program_uniform_float (int uniform_no, cogl_program_uniform_float (int uniform_no,
int size, int size,
int count, int count,
const float *value); const float *value) G_GNUC_DEPRECATED;
/** /**
* cogl_program_uniform_int: * cogl_program_uniform_int:
@ -423,7 +425,7 @@ void
cogl_program_uniform_int (int uniform_no, cogl_program_uniform_int (int uniform_no,
int size, int size,
int count, int count,
const int *value); const int *value) G_GNUC_DEPRECATED;
/** /**
* cogl_program_uniform_matrix: * cogl_program_uniform_matrix:
@ -442,7 +444,9 @@ cogl_program_uniform_matrix (int uniform_no,
int size, int size,
int count, int count,
gboolean transpose, gboolean transpose,
const float *value); const float *value) G_GNUC_DEPRECATED;
#endif /* COGL_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS