Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Types | Public Member Functions | Static Public Member Functions
RescaleNormalAttrib Class Reference

Specifies how polygons are to be drawn. More...

Inheritance diagram for RescaleNormalAttrib:
RenderAttrib TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject

List of all members.

Public Types

enum  Mode { MNone = 0, MRescale = 1, MNormalize = 2, MAuto = 3 }

Public Member Functions

Mode getMode ()
 Returns the render mode.

Static Public Member Functions

static int getClassSlot ()
static TypeHandle getClassType ()
static RenderAttrib const make (Mode mode)
 Constructs a new RescaleNormalAttrib object that specifies whether to rescale normals to compensate for transform scales or incorrectly defined normals.
static RenderAttrib const makeDefault ()
 Constructs a RescaleNoramlAttrib object that's suitable for putting at the top of a scene graph.

Detailed Description

Specifies how polygons are to be drawn.


Member Enumeration Documentation

enum Mode
Enumerator:
MNone 
MRescale 
MNormalize 
MAuto 

Member Function Documentation

static int getClassSlot ( ) [static]
static TypeHandle getClassType ( ) [static]

Reimplemented from RenderAttrib.

Returns the render mode.

static RenderAttrib const make ( Mode  mode) [static]

Constructs a new RescaleNormalAttrib object that specifies whether to rescale normals to compensate for transform scales or incorrectly defined normals.

static RenderAttrib const makeDefault ( ) [static]

Constructs a RescaleNoramlAttrib object that's suitable for putting at the top of a scene graph.

This will contain whatever attrib was suggested by the user's rescale-normals Config variable.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties