4
* An object oriented GL/GLES Abstraction/Utility Layer
6
* Copyright (C) 2009 Intel Corporation.
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.
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.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
24
* Havoc Pennington <hp@pobox.com> for litl
27
#ifndef __COGL_MATRIX_STACK_H
28
#define __COGL_MATRIX_STACK_H
30
#include "cogl-matrix.h"
32
typedef struct _CoglMatrixStack CoglMatrixStack;
35
COGL_MATRIX_MODELVIEW,
36
COGL_MATRIX_PROJECTION,
40
CoglMatrixStack* _cogl_matrix_stack_new (void);
41
void _cogl_matrix_stack_destroy (CoglMatrixStack *stack);
42
void _cogl_matrix_stack_push (CoglMatrixStack *stack);
43
void _cogl_matrix_stack_pop (CoglMatrixStack *stack);
44
void _cogl_matrix_stack_load_identity (CoglMatrixStack *stack);
45
void _cogl_matrix_stack_scale (CoglMatrixStack *stack,
49
void _cogl_matrix_stack_translate (CoglMatrixStack *stack,
53
void _cogl_matrix_stack_rotate (CoglMatrixStack *stack,
58
void _cogl_matrix_stack_multiply (CoglMatrixStack *stack,
59
const CoglMatrix *matrix);
60
void _cogl_matrix_stack_frustum (CoglMatrixStack *stack,
67
void _cogl_matrix_stack_perspective (CoglMatrixStack *stack,
72
void _cogl_matrix_stack_ortho (CoglMatrixStack *stack,
80
gboolean _cogl_matrix_stack_get_inverse (CoglMatrixStack *stack,
82
void _cogl_matrix_stack_get (CoglMatrixStack *stack,
84
void _cogl_matrix_stack_set (CoglMatrixStack *stack,
85
const CoglMatrix *matrix);
86
void _cogl_matrix_stack_flush_to_gl (CoglMatrixStack *stack,
88
void _cogl_matrix_stack_dirty (CoglMatrixStack *stack);
90
#endif /* __COGL_MATRIX_STACK_H */