~noskcaj/ubuntu/trusty/cogl/1.16.2

« back to all changes in this revision

Viewing changes to cogl/cogl-pipeline-progend-fixed.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha, Jeremy Bicha, Rico Tzschichholz
  • Date: 2013-02-26 16:43:25 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130226164325-t4z9rylpa20v0p6q
Tags: 1.13.4-0ubuntu1
[ Jeremy Bicha ]
* New upstream release
  - soname bump
* debian/control.in:
  - Bump minimum glib to 2.32
  - Drop obsolete breaks/replaces
  - Bump libclutter-1.0-dev breaks for soname transition
* debian/libcogl-dev.install:
  - Add some missing files

[ Rico Tzschichholz ]
* debian/control.in:
  - Build-depend on libxrandr-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Cogl
3
 
 *
4
 
 * An object oriented GL/GLES Abstraction/Utility Layer
5
 
 *
6
 
 * Copyright (C) 2011 Intel Corporation.
7
 
 *
8
 
 * This library is free software; you can redistribute it and/or
9
 
 * modify it under the terms of the GNU Lesser General Public
10
 
 * License as published by the Free Software Foundation; either
11
 
 * version 2 of the License, or (at your option) any later version.
12
 
 *
13
 
 * This library is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 
 * Lesser General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU Lesser General Public
19
 
 * License along with this library. If not, see
20
 
 * <http://www.gnu.org/licenses/>.
21
 
 *
22
 
 *
23
 
 *
24
 
 * Authors:
25
 
 *   Neil Roberts <neil@linux.intel.com>
26
 
 */
27
 
 
28
 
#ifdef HAVE_CONFIG_H
29
 
#include "config.h"
30
 
#endif
31
 
 
32
 
#include <string.h>
33
 
 
34
 
#include "cogl-pipeline-private.h"
35
 
 
36
 
#ifdef COGL_PIPELINE_PROGEND_FIXED
37
 
 
38
 
#include "cogl-context.h"
39
 
#include "cogl-context-private.h"
40
 
#include "cogl-framebuffer-private.h"
41
 
 
42
 
static void
43
 
_cogl_pipeline_progend_fixed_pre_paint (CoglPipeline *pipeline,
44
 
                                        CoglFramebuffer *framebuffer)
45
 
{
46
 
  CoglContext *ctx = framebuffer->context;
47
 
 
48
 
  if (pipeline->vertend != COGL_PIPELINE_VERTEND_FIXED)
49
 
    return;
50
 
 
51
 
  if (ctx->current_projection_entry)
52
 
    _cogl_matrix_entry_flush_to_gl_builtins (ctx,
53
 
                                             ctx->current_projection_entry,
54
 
                                             COGL_MATRIX_PROJECTION,
55
 
                                             framebuffer,
56
 
                                             FALSE /* enable flip */);
57
 
  if (ctx->current_modelview_entry)
58
 
    _cogl_matrix_entry_flush_to_gl_builtins (ctx,
59
 
                                             ctx->current_modelview_entry,
60
 
                                             COGL_MATRIX_MODELVIEW,
61
 
                                             framebuffer,
62
 
                                             FALSE /* enable flip */);
63
 
}
64
 
 
65
 
const CoglPipelineProgend _cogl_pipeline_fixed_progend =
66
 
  {
67
 
    NULL, /* end */
68
 
    NULL, /* pre_change_notify */
69
 
    NULL, /* layer_pre_change_notify */
70
 
    _cogl_pipeline_progend_fixed_pre_paint
71
 
  };
72
 
 
73
 
#endif /* COGL_PIPELINE_PROGEND_FIXED */