samples/VRAY/VRAY_DemoSprite.C File Reference

#include "VRAY_DemoSprite.h"
#include <VRAY/VRAY_IO.h>
#include <GU/GU_Detail.h>
#include <GU/GU_PrimPoly.h>
#include <UT/UT_Defines.h>
#include <SYS/SYS_Floor.h>

Go to the source code of this file.


Classes

class  HDK_Sample::vray_SpriteAttribMap

Namespaces

namespace  HDK_Sample
 This namespace is used to hold all HDK example source code.

Defines

#define MIN_CHUNK   8
#define SPRITE_LIMIT   1000
#define META_CORRECT   0.5
#define DEFAULT_ATTRIB_PATTERN   ""
#define DEFAULT_SIZE   0.05F
#define SPRITE_SIZE(xsize, ysize, size)
#define SPRITE_TEXTURE(u1, v1, u2, v2, txt)
#define ASSIGN_VERTEX(poly, ppt, i, XDELTA, YDELTA, u, v)

Functions

VRAY_ProceduralallocProcedural (const char *)
 Mantra procedural primitives.
const VRAY_ProceduralArggetProceduralArgs (const char *)
 Dynamic load entry point to query arguments for a procedural.


Define Documentation

#define ASSIGN_VERTEX ( poly,
ppt,
i,
XDELTA,
YDELTA,
u,
v   ) 

Value:

ppt = poly->getVertex(i).getPt(); \
    ppt->getPos() = src_point->getPos(); \
    ppt->getPos().x() XDELTA; ppt->getPos().y() YDELTA; \
    if (txt_off >= 0) \
        ppt->setValue<UT_Vector3>(txt_off, UT_Vector3(u, v, 0));

Definition at line 463 of file VRAY_DemoSprite.C.

#define DEFAULT_ATTRIB_PATTERN   ""

Definition at line 43 of file VRAY_DemoSprite.C.

#define DEFAULT_SIZE   0.05F

Examples:
VRAY/VRAY_DemoSprite.C.

Definition at line 453 of file VRAY_DemoSprite.C.

#define META_CORRECT   0.5

Definition at line 42 of file VRAY_DemoSprite.C.

#define MIN_CHUNK   8

Examples:
VRAY/VRAY_DemoSprite.C.

Definition at line 40 of file VRAY_DemoSprite.C.

#define SPRITE_LIMIT   1000

Examples:
VRAY/VRAY_DemoSprite.C.

Definition at line 41 of file VRAY_DemoSprite.C.

#define SPRITE_SIZE ( xsize,
ysize,
size   ) 

Value:

{ xsize = src_point->getValue<float>(parms.mySpriteScaleOff, 0) * 0.5F; \
    ysize = src_point->getValue<float>(parms.mySpriteScaleOff, 1) * 0.5F; }
Examples:
VRAY/VRAY_DemoSprite.C.

Definition at line 455 of file VRAY_DemoSprite.C.

#define SPRITE_TEXTURE ( u1,
v1,
u2,
v2,
txt   ) 

Value:

{ UT_Vector3 txt = src_point->getValue<UT_Vector3>(parms.mySpriteTexOff); \
    u1 = txt.x(); v1 = txt.y(); u2 = txt.x()+txt.z(); v2 = txt.y()+txt.z(); }
Examples:
VRAY/VRAY_DemoSprite.C.

Definition at line 459 of file VRAY_DemoSprite.C.


Function Documentation

VRAY_Procedural* allocProcedural ( const char *  name  ) 

Mantra procedural primitives.

When a procedural is defined as a dynamic object, the allocProcedural() function is called to build a new instance of the procedural. The name passed in will be the name defined by the table entry. This can be used for: a) Error checking -- you can verify that you're name is what you expect. However, this isn't manditory. b) To have more than one procedural defined per C++ class. Using the name, you can create procedurals of different types.

The argument list for the procedural is specified by a list of arguments. The getProceduralArgs() method should return a pointer to an array of VRAY_ProceduralArg's. The list should be terminated by an entry with default arguments (i.e. null pointers). For example: Arguments can then be queried using the argValue() methods in the procedural Dynamic load entry point to create an instance

Definition at line 140 of file VRAY_DemoSprite.C.

const VRAY_ProceduralArg* getProceduralArgs ( const char *   ) 

Dynamic load entry point to query arguments for a procedural.

Definition at line 147 of file VRAY_DemoSprite.C.


Generated on Thu Jan 31 00:29:21 2013 for HDK by  doxygen 1.5.9