# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CDeform2d Class Reference

This perform a 2d deformation effect on the frame buffer, by using the given function and surface. More...

#include <deform_2d.h>

List of all members.

Public Types

typedef std::vector< NLMISC::CVector2fTPoint2DVect

Static Public Methods

void doDeform (const TPoint2DVect &surf, IDriver *drv, IPerturbUV *uvp)
void setupBuffer (uint width, uint height, uint xGranularity, uint yGranularity, uint xQuad, uint yQuad)
 resize the granularity of buffers for fxs. More...


Static Protected Attributes

uint _Width
uint _Height
uint _XGranularity
uint _YGranularity
uint _XQuad
uint _YQuad
NLMISC::CSmartPtr< ITexture_Tex


Detailed Description

This perform a 2d deformation effect on the frame buffer, by using the given function and surface.

This is intended to be used on small surfaces only (getting back data from the frame buffer to build a texture is really slow...)

Author:
Nicolas Vizerie , Nevrax France
Date:
2001

Definition at line 47 of file deform_2d.h.


Member Typedef Documentation

typedef std::vector<NLMISC::CVector2f> NL3D::CDeform2d::TPoint2DVect
 

Definition at line 50 of file deform_2d.h.

Referenced by doDeform.


Member Function Documentation

void NL3D::CDeform2d::doDeform const TPoint2DVect   surf,
IDriver   drv,
IPerturbUV   uvp
[static]
 

Definition at line 85 of file deform_2d.cpp.

References _Height, _Tex, _Width, _XGranularity, _YGranularity, nlassert, NLMISC::raiseToNextPowerOf2, TPoint2DVect, v, and NLMISC::CVector::y.

void NL3D::CDeform2d::setupBuffer uint    width,
uint    height,
uint    xGranularity,
uint    yGranularity,
uint    xQuad,
uint    yQuad
[static]
 

resize the granularity of buffers for fxs.

Parameters:
width  frameBuffer width
height  framebuffer height
xGranularity  width of the quads taken from the framebuffer
yGranularity  height of the quads taken from the framebuffer
xQuad  width of the quads used to draw the fx (this is usually lower than xGanularity)
yQuad  height of the quads used to draw the fx (this is usually lower than yGanularity)

Definition at line 55 of file deform_2d.cpp.

References _Height, _Tex, _Width, _XGranularity, _XQuad, _YGranularity, _YQuad, height, NLMISC::raiseToNextPowerOf2, and width.


Member Data Documentation

uint NL3D::CDeform2d::_Height [static, protected]
 

Definition at line 47 of file deform_2d.cpp.

Referenced by doDeform, and setupBuffer.

NLMISC::CSmartPtr< ITexture > NL3D::CDeform2d::_Tex [static, protected]
 

Definition at line 52 of file deform_2d.cpp.

Referenced by doDeform, and setupBuffer.

uint NL3D::CDeform2d::_Width [static, protected]
 

Definition at line 46 of file deform_2d.cpp.

Referenced by doDeform, and setupBuffer.

uint NL3D::CDeform2d::_XGranularity [static, protected]
 

Definition at line 48 of file deform_2d.cpp.

Referenced by doDeform, and setupBuffer.

uint NL3D::CDeform2d::_XQuad [static, protected]
 

Definition at line 50 of file deform_2d.cpp.

Referenced by setupBuffer.

uint NL3D::CDeform2d::_YGranularity [static, protected]
 

Definition at line 49 of file deform_2d.cpp.

Referenced by doDeform, and setupBuffer.

uint NL3D::CDeform2d::_YQuad [static, protected]
 

Definition at line 51 of file deform_2d.cpp.

Referenced by setupBuffer.


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