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

Specifies whether flat shading (per-polygon) or smooth shading (per-vertex) is in effect. More...

Inheritance diagram for ShadeModelAttrib:
RenderAttrib TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject

List of all members.

Public Types

enum  Mode { MFlat = 0, MSmooth = 1 }

Public Member Functions

Mode getMode ()
 Returns the shade mode.

Static Public Member Functions

static int getClassSlot ()
static TypeHandle getClassType ()
static RenderAttrib const make (Mode mode)
 Constructs a new ShadeModelAttrib object that specifies whether to draw polygons with flat shading or with per-vertex (smooth) shading.
static RenderAttrib const makeDefault ()
 Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.

Detailed Description

Specifies whether flat shading (per-polygon) or smooth shading (per-vertex) is in effect.


Member Enumeration Documentation

enum Mode
Enumerator:
MFlat 
MSmooth 

Member Function Documentation

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

Reimplemented from RenderAttrib.

Returns the shade mode.

static RenderAttrib const make ( Mode  mode) [static]

Constructs a new ShadeModelAttrib object that specifies whether to draw polygons with flat shading or with per-vertex (smooth) shading.

static RenderAttrib const makeDefault ( ) [static]

Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties