Changeset 1299 for trunk/pysoy/include

Show
Ignore:
Timestamp:
05/23/08 02:49:01 (6 months ago)
Author:
ArcRiley
Message:

Ticket #955 :

  • added fabs to math.pxd
  • removed soy.materials.Animated
  • added .animate property to soy.textures.Texture
  • added AnimBlock?.py example — oooh pretty!!
Location:
trunk/pysoy/include
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/pysoy/include/math.pxd

    r1271 r1299  
    1919 
    2020cdef extern from "math.h" nogil : 
    21   long int lround  (double x) 
    22   long int lroundf (float x) 
    23   float fabsf (float number) 
     21  long int         lround    ( double ) 
     22  long int         lroundf   ( float ) 
     23  double           fabs      ( double ) 
     24  float            fabsf     ( float ) 
  • trunk/pysoy/include/soy.materials.pxd

    r1298 r1299  
    4242  cdef soy.textures.Texture _colormap 
    4343  cdef soy.textures.Texture _glowmap 
    44  
    45 cdef class Animated (Material) : 
    46   cdef float                _animateX 
    47   cdef float                _animateY 
    48   cdef float                _animateZ 
  • trunk/pysoy/include/soy.textures.pxd

    r1286 r1299  
    2020cimport gl 
    2121cimport py 
     22cimport math 
    2223cimport ogg 
    2324cimport cairo 
     
    3536  cdef gl.GLsizei   _height 
    3637  cdef gl.GLsizei   _depth 
     38  cdef int          _isAnimated 
     39  cdef gl.GLfloat   _animate[3] 
    3740  cdef gl.GLfloat   _scaleX 
    3841  cdef gl.GLfloat   _scaleY 
     
    4245  cdef gl.GLubyte  *_texels 
    4346  # Lookup Arrays 
    44   cdef int          _types[3] 
     47  cdef int          _types[5] 
    4548  cdef int          _formats[5] 
    4649  # General C functions