| 1 | # PySoy materials 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 | |
|---|
| 20 | cimport gl |
|---|
| 21 | cimport stdio |
|---|
| 22 | cimport soy.colors |
|---|
| 23 | cimport soy.textures |
|---|
| 24 | |
|---|
| 25 | cdef class Material : |
|---|
| 26 | cdef soy.colors.Color _ambient |
|---|
| 27 | cdef soy.colors.Color _diffuse |
|---|
| 28 | cdef soy.colors.Color _specular |
|---|
| 29 | cdef soy.colors.Color _emission |
|---|
| 30 | cdef int _shades |
|---|
| 31 | cdef float _shininess |
|---|
| 32 | # |
|---|
| 33 | # General C Functions |
|---|
| 34 | cdef int _isTransparent ( self ) nogil |
|---|
| 35 | cdef int _needsTSLVs ( self ) nogil |
|---|
| 36 | # |
|---|
| 37 | # WindowLoop Functions |
|---|
| 38 | cdef int _render ( self, int, float*, float* ) nogil |
|---|
| 39 | |
|---|
| 40 | cdef class Textured (Material) : |
|---|
| 41 | cdef soy.textures.Texture _bumpmap |
|---|
| 42 | cdef soy.textures.Texture _colormap |
|---|
| 43 | cdef soy.textures.Texture _glowmap |
|---|