Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RwIm2DCameraVertex
[Immediate Mode]


Functions

void  RwIm2DCameraVertexSetU (RwIm2DVertex *devvert, RwCameraVertex *camvert, RwReal u, RwReal reciprocalZ)
void  RwIm2DCameraVertexSetV (RwIm2DVertex *devvert, RwCameraVertex *camvert, RwReal v, RwReal reciprocalZ)

Detailed Description

2D Camera space vertex data access

RwIm2DCameraVertex Overview

Requirements

Overview

These two macros are used to set the RwCameraVertex texture coordinates together with those of an RwIm2DVertex.

As both vertex types are frequently worked on together, using these macros can save some typing. They are defined as follows:

Warning:
Do not use these macros on platforms with hardware-accelerated transform and lighting stages.
#define RwIm2DCameraVertexSetU(devvert, camvert, camu, recipz)  \
    MACRO_START                                                 \
    {                                                           \
        RwCameraVertexSetU(camvert, camu);                      \
        RwIm2DVertexSetU(devvert, camu, recipz);                \
    }                                                           \
    MACRO_STOP
#define RwIm2DCameraVertexSetV(devvert, camvert, camu, recipz)  \
    MACRO_START                                                 \
    {                                                           \
        RwCameraVertexSetV(camvert, camu);                      \
        RwIm2DVertexSetV(devvert, camu, recipz);                \
    }                                                           \
    MACRO_STOP
   

Function Documentation

void RwIm2DCameraVertexSetU RwIm2DVertex   devvert,
RwCameraVertex   camvert,
RwReal    u,
RwReal    reciprocalZ
 

RwIm2DCameraVertexSetU is used to define the texture u-coordinate of the specified device and corresponding camera vertices.

Parameters:
devvert  A pointer to the device vertex
camvert  A pointer to the camera vertex
u  An RwReal value equal to the texture u-coordinate
reciprocalZ  An RwReal value equal to the reciprocal z-coordinate (for perspective correction purposes).
Returns:
None.
See also:
RwIm2DCameraVertexSetV , RwIm2DVertexSetU , RwIm2DVertexSetV , RwCameraVertexSetU , RwCameraVertexSetV
void RwIm2DCameraVertexSetV RwIm2DVertex   devvert,
RwCameraVertex   camvert,
RwReal    v,
RwReal    reciprocalZ
 

RwIm2DCameraVertexSetV is used to define the texture v-coordinate of the specified device and corresponding camera vertices.

Parameters:
devvert  A pointer to the device vertex
camvert  A pointer to the camera vertex
v  An RwReal value equal to the texture v-coordinate
reciprocalZ  An RwReal value equal to the reciprocal z-coordinate (for perspective correction purposes).
Returns:
None.
See also:
RwIm2DCameraVertexSetU , RwIm2DVertexSetU , RwIm2DVertexSetV , RwCameraVertexSetV , RwCameraVertexSetU

Criterion Software © 1993-2003 Criterion Software Limited. All rights reserved. Built Tue Apr 22 12:46:16 2003. Send Feedback
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)