root / trunk / pysoy / include / soy.textures.pxd

Revision 1299, 2.5 kB (checked in by ArcRiley, 5 months ago)

Ticket #955 :

  • added fabs to math.pxd
  • removed soy.materials.Animated
  • added .animate property to soy.textures.Texture
  • added AnimBlock?.py example — oooh pretty!!
  • Property svn:keywords set to Id
Line 
1# PySoy's textures declarations
2#
3# Copyright (C) 2006,2007,2008 PySoy Group
4#
5#  This program is free software; you can redistribute it and/or modify
6#  it under the terms of the GNU Affero General Public License as published
7#  by the Free Software Foundation, either version 3 of the License, or
8#  (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU Affero General Public License for more details.
14#
15#  You should have received a copy of the GNU Affero General Public License
16#  along with this program; if not, see http://www.gnu.org/licenses
17#
18# $Id$
19
20cimport gl
21cimport py
22cimport math
23cimport ogg
24cimport cairo
25cimport stdio
26cimport soy._internals
27cimport soy.colors
28
29cdef class Texture (soy._internals.Loadable) :
30  cdef gl.GLuint    _textureID
31  cdef gl.GLenum    _target
32  cdef void*        _mutex
33  cdef int          _bytes
34  cdef int          _chans
35  cdef gl.GLsizei   _width
36  cdef gl.GLsizei   _height
37  cdef gl.GLsizei   _depth
38  cdef int          _isAnimated
39  cdef gl.GLfloat   _animate[3]
40  cdef gl.GLfloat   _scaleX
41  cdef gl.GLfloat   _scaleY
42  cdef gl.GLfloat   _scaleZ
43  cdef float        _aspect
44  cdef int          _update
45  cdef gl.GLubyte  *_texels
46  # Lookup Arrays
47  cdef int          _types[5]
48  cdef int          _formats[5]
49  # General C functions
50  cdef void         _resize                 ( self, int, int,
51                                              int, int, int )             nogil
52  cdef int          _squareup               ( self, int )                 nogil
53  # WindowLoop functions
54  cdef void         _enable                 ( self )                      nogil
55  cdef void         _disable                ( self )                      nogil
56
57
58cdef class Print (Texture) :
59  cdef cairo.cairo_surface_t* _surface
60  cdef cairo.cairo_t*         _context
61  cdef soy.colors.Color       _background
62  cdef soy.colors.Color       _foreground
63  cdef object                 _text
64  cdef object                 _font
65  # General C functions
66  cdef void                   _draw     ( self )
67
68         
69cdef class Video (Texture) :
70  cdef int                    _stage # -1=Null, 0=New, 1=Header, 2=Decode
71  cdef ogg.ogg_stream_state   _stream
72  cdef ogg.theora_info        _info
73  cdef ogg.theora_comment     _comment
74  cdef ogg.theora_state       _decode
75  cdef double                 _startTime
76  cdef double                 _frameTime
Note: See TracBrowser for help on using the browser.