Logo Search packages:      
Sourcecode: blender version File versions

GPC_PolygonMaterial Class Reference

#include <GPC_PolygonMaterial.h>

Inheritance diagram for GPC_PolygonMaterial:

RAS_IPolyMaterial

List of all members.


Detailed Description

Id
GPC_PolygonMaterial.h,v 1.7 2004/05/26 12:01:07 kester Exp

***** BEGIN GPL/BL DUAL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Blender Foundation also sells licenses for use in proprietary software under the Blender License. See http://www.blender.org/BL/ for information about this.

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 General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL/BL DUAL LICENSE BLOCK *****

Definition at line 38 of file GPC_PolygonMaterial.h.


Public Types

enum  MaterialFlags { BILLBOARD_SCREENALIGNED = 256, BILLBOARD_AXISALIGNED = 4096, SHADOW = 8192 }
typedef void * TCachingInfo

Public Member Functions

virtual void Activate (RAS_IRasterizer *rasty, TCachingInfo &cachingInfo) const
virtual void Activate (RAS_IRasterizer *rasty, TCachingInfo &cachingInfo) const
bool Equals (const RAS_IPolyMaterial &lhs) const
virtual TCachingInfo GetCachingInfo (void) const
int GetDrawingMode () const
int GetLightLayer () const
const STR_StringGetMaterialName () const
const STR_StringGetTextureName () const
TFace * GetTFace (void) const
 GPC_PolygonMaterial (const STR_String &texname, bool ba, const STR_String &matname, int tile, int tileXrep, int tileYrep, int mode, bool transparant, bool zsort, int lightlayer, bool bIsTriangle, void *clientobject, void *tpage)
unsigned int hash () const
bool IsTransparant () const
bool IsZSort () const
bool Less (const RAS_IPolyMaterial &rhs) const
bool UsesTriangles () const

Static Public Member Functions

static void SetMipMappingEnabled (bool enabled=false)

Public Attributes

MT_Vector3 m_diffuse
float m_shininess
MT_Vector3 m_specular
float m_specularity

Protected Attributes

bool m_bIsTriangle
int m_drawingmode
int m_lightlayer
STR_HashedString m_materialname
unsigned int m_polymatid
STR_HashedString m_texturename
int m_tile
int m_tilexrep
int m_tileyrep
bool m_transparant
bool m_zsort

Static Protected Attributes

static unsigned int m_newpolymatid = 0

Private Attributes

struct TFace * m_tface

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index