NL3D::CScissor Class Reference

#include <scissor.h>


Detailed Description

A scissor, used for IDriver rendering. NB: you can specify negative values for x/y.
Author:
Lionel Berenguier

Nevrax France

Date:
2001

Definition at line 51 of file scissor.h.

Public Member Functions

 CScissor (float x, float y, float width, float height)
 Constructor.

 CScissor ()
 Constructor. fullScreen.

void init (float x, float y, float width, float height)
 init. simple copy.

void initFullScreen ()
 reset to FullScreen


Data Fields

float Height
float Width
float X
float Y


Constructor & Destructor Documentation

NL3D::CScissor::CScissor  )  [inline]
 

Constructor. fullScreen.

Definition at line 60 of file scissor.h.

References initFullScreen(), and NL3D_MEM_SCISSOR.

00061         {
00062                 NL3D_MEM_SCISSOR
00063                 initFullScreen();
00064         }

NL3D::CScissor::CScissor float  x,
float  y,
float  width,
float  height
[inline]
 

Constructor.

Definition at line 66 of file scissor.h.

References height, NL3D_MEM_SCISSOR, width, x, and y.

00067         {
00068                 NL3D_MEM_SCISSOR
00069                 X= x;
00070                 Y= y;
00071                 Width= width;
00072                 Height= height;
00073         }


Member Function Documentation

void NL3D::CScissor::init float  x,
float  y,
float  width,
float  height
[inline]
 

init. simple copy.

Definition at line 77 of file scissor.h.

References height, NL3D_MEM_SCISSOR, width, x, and y.

Referenced by NL3D::CShadowMapManager::renderGenerate().

00078         {
00079                 NL3D_MEM_SCISSOR
00080                 X= x;
00081                 Y= y;
00082                 Width= width;
00083                 Height= height;
00084         }

void NL3D::CScissor::initFullScreen  )  [inline]
 

reset to FullScreen

Definition at line 88 of file scissor.h.

References NL3D_MEM_SCISSOR.

Referenced by CScissor(), NL3D::CShadowMapManager::renderGenerate(), NL3D::CDriverUser::setDisplay(), and NL3D::CCloud::setMode2D().

00089         {
00090                 NL3D_MEM_SCISSOR
00091                 X= 0;
00092                 Y= 0;
00093                 Width= 1;
00094                 Height=1;
00095         }


Field Documentation

float NL3D::CScissor::Height
 

Definition at line 57 of file scissor.h.

float NL3D::CScissor::Width
 

Definition at line 56 of file scissor.h.

float NL3D::CScissor::X
 

Definition at line 54 of file scissor.h.

float NL3D::CScissor::Y
 

Definition at line 55 of file scissor.h.


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 07:40:59 2004 for NeL by doxygen 1.3.6