summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-05-28 12:54:54 +0200
committerBenjamin Otte <otte@redhat.com>2010-06-07 13:37:47 +0200
commitdd1faaf02e2a75ca8b9c484abd15726f5c6d3ac4 (patch)
tree45671d1cc6d3c54cae1215318027a179d7d0d8cd
parentd03800313623fb2b9e7d15c6a659ceaaee2882e8 (diff)
gl: Move function
I wanna use it elsewhere and keep the diff small.
-rw-r--r--src/cairo-gl-composite.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c
index 0268ba5a..f81ebfe5 100644
--- a/src/cairo-gl-composite.c
+++ b/src/cairo-gl-composite.c
@@ -606,6 +606,35 @@ _cairo_gl_texture_set_attributes (cairo_gl_context_t *ctx,
}
static void
+_cairo_gl_operand_setup_fixed (cairo_gl_operand_t *operand,
+ cairo_gl_tex_t tex_unit)
+{
+ switch (operand->type) {
+ case CAIRO_GL_OPERAND_CONSTANT:
+ glTexEnvfv (GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, operand->constant.color);
+ glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_RGB, GL_CONSTANT);
+ glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_ALPHA, GL_CONSTANT);
+ break;
+ case CAIRO_GL_OPERAND_TEXTURE:
+ glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_RGB, GL_TEXTURE0 + tex_unit);
+ glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_ALPHA, GL_TEXTURE0 + tex_unit);
+ break;
+ break;
+ case CAIRO_GL_OPERAND_SPANS:
+ glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_RGB, GL_PRIMARY_COLOR);
+ glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_ALPHA, GL_PRIMARY_COLOR);
+ break;
+ case CAIRO_GL_OPERAND_COUNT:
+ default:
+ ASSERT_NOT_REACHED;
+ case CAIRO_GL_OPERAND_LINEAR_GRADIENT:
+ case CAIRO_GL_OPERAND_RADIAL_GRADIENT:
+ case CAIRO_GL_OPERAND_NONE:
+ break;
+ }
+}
+
+static void
_cairo_gl_context_setup_operand (cairo_gl_context_t *ctx,
cairo_gl_tex_t tex_unit,
cairo_gl_operand_t *operand,
@@ -666,35 +695,6 @@ _cairo_gl_context_destroy_operand (cairo_gl_context_t *ctx,
}
static void
-_cairo_gl_operand_setup_fixed (cairo_gl_operand_t *operand,
- cairo_gl_tex_t tex_unit)
-{
- switch (operand->type) {
- case CAIRO_GL_OPERAND_CONSTANT:
- glTexEnvfv (GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, operand->constant.color);
- glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_RGB, GL_CONSTANT);
- glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_ALPHA, GL_CONSTANT);
- break;
- case CAIRO_GL_OPERAND_TEXTURE:
- glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_RGB, GL_TEXTURE0 + tex_unit);
- glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_ALPHA, GL_TEXTURE0 + tex_unit);
- break;
- break;
- case CAIRO_GL_OPERAND_SPANS:
- glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_RGB, GL_PRIMARY_COLOR);
- glTexEnvi (GL_TEXTURE_ENV, GL_SRC0_ALPHA, GL_PRIMARY_COLOR);
- break;
- case CAIRO_GL_OPERAND_COUNT:
- default:
- ASSERT_NOT_REACHED;
- case CAIRO_GL_OPERAND_LINEAR_GRADIENT:
- case CAIRO_GL_OPERAND_RADIAL_GRADIENT:
- case CAIRO_GL_OPERAND_NONE:
- break;
- }
-}
-
-static void
_cairo_gl_set_src_operand (cairo_gl_context_t *ctx,
cairo_gl_composite_t *setup)
{
3'>libreoffice-5-0-3 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2024-02-17Version 7.6.5.2, tag libreoffice-7.6.5.2-hotfix1libreoffice-7.6.5.2-hotfix1Christian Lohmaier0-0/+0
2024-02-15Version 7.6.5.2, tag libreoffice-7.6.5.2libreoffice-7.6.5.2Christian Lohmaier0-0/+0
2024-02-15update translations for 7.6.5 rc2libreoffice-7-6-5Christian Lohmaier285-5982/+5640
2024-02-01Branch libreoffice-7-6-5Christian Lohmaier0-0/+0
2024-02-01update translations for 7.6.5 rc1Christian Lohmaier37-483/+473
2024-01-30update translations for 7.6.5 rc1Christian Lohmaier879-27048/+26033
2023-11-30update translations for 7.6.4 rc1Xisco Fauli152-2777/+2756
2023-11-23update translations for 7-6Xisco Fauli42-818/+811
2023-11-21update translations for 7-6Xisco Fauli70-1462/+1451
2023-11-16update translations for 7.6.3 rc2Christian Lohmaier278-4389/+4308
2023-11-02update translations for 7.6.3 rc1Christian Lohmaier355-8735/+9208
2023-10-02update translations for 7-6Christian Lohmaier130-2279/+2254
2023-09-22update translations for 7.6.2 rc1Christian Lohmaier25-624/+594
2023-09-19update translations for 7.6.2 rc1Christian Lohmaier92-1251/+1232
2023-09-18Updated Slovenian translationMartin Srebotnjak54-286/+293
2023-09-16Updated Slovenian translationMartin Srebotnjak54-578/+578
2023-09-13update translations for 7-6Christian Lohmaier60-2531/+2463
2023-09-06update translations for 7.6.1 rc2Christian Lohmaier98-3677/+3513
2023-08-28update translations for master/7.6Christian Lohmaier112-2646/+2674
2023-08-23update translations for master/7.6.1 rc1Xisco Fauli62-2393/+2289
2023-08-16update translations for master/7.6.1 rc1Xisco Fauli290-13739/+13680
2023-08-08update translations for 7.6.0 rc3Christian Lohmaier38-1025/+944
2023-08-07update translations for 7.6.0 rc3Christian Lohmaier233-8251/+7856
2023-07-26update translations for 7.6.0 rc2Christian Lohmaier879-28115/+27400
2023-07-08Updated Slovenian translationMartin Srebotnjak17-2275/+2601
2023-07-07update translations for master/7.6.0 rc1Christian Lohmaier1748-357269/+430134
2023-07-01Updated Slovenian translationMartin Srebotnjak30-2002/+3514
2023-06-19update translations for master/7.6Christian Lohmaier940-10242/+20911
2023-06-12update translations for 7.6/masterChristian Lohmaier777-10559/+17593
2023-06-07Branch libreoffice-7-6Christian Lohmaier0-0/+0
2023-06-07update translations for master/7.6.0 beta1libreoffice-7-6-branch-pointChristian Lohmaier1234-124630/+170202
2023-06-01Updated Slovenian translationMartin Srebotnjak38-3954/+5251
2023-05-31update translations for master/7.6Christian Lohmaier1747-91792/+170634
2023-05-22update translations for master/7.6Christian Lohmaier722-151571/+156642
2023-05-17update translations for masterChristian Lohmaier1295-55089/+71497
2023-05-14Updated Slovenian translationMartin Srebotnjak67-9207/+15986
2023-05-11update tranlsations for master/7.6.0 alpha1Christian Lohmaier399-27908/+29243
2023-05-10update translations for masterChristian Lohmaier2164-289516/+301752
2023-05-03update translations for masterChristian Lohmaier1350-43395/+56073
2023-04-27update translations for masterChristian Lohmaier1215-246813/+348136
2023-04-26update translations for masterChristian Lohmaier443-4259/+4449
2023-04-19update translations for masterChristian Lohmaier