# PySoy materials declarations # # Copyright (C) 2006,2007,2008 PySoy Group # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program; if not, see http://www.gnu.org/licenses # # $Id$ cimport gl cimport stdio cimport soy.colors cimport soy.textures cdef class Material : cdef soy.colors.Color _ambient cdef soy.colors.Color _diffuse cdef soy.colors.Color _specular cdef soy.colors.Color _emission cdef int _shades cdef float _shininess # # General C Functions cdef int _isTransparent ( self ) nogil cdef int _needsTSLVs ( self ) nogil # # WindowLoop Functions cdef int _render ( self, int, float*, float* ) nogil cdef class Textured (Material) : cdef soy.textures.Texture _bumpmap cdef soy.textures.Texture _colormap cdef soy.textures.Texture _glowmap