Agar

<-- Back to AG_Intro.3

SYNOPSIS

#include <agar/core.h>
#include <freesg/sg.h>

DESCRIPTION

The SG_CgProgram object represents a vertex or pixel shader in the GPU programming language Cg.

INHERITANCE HIERARCHY

AG_Object(3)-> SG_Program(3)-> SG_CgProgram.

INITIALIZATION


SG_CgProgram * SG_CgProgramNew (AG_Object *parent, const char *name)


The SG_CgProgramNew() function allocates, initializes, and attaches a SG_CgProgram object.

STRUCTURE DATA

For the SG_CgProgram object:
CGprogram *objs List of compiled programs.
Uint nObjs Count of compiled programs.
CGprogram instObj Currently effective (installed) program.
CGprofile instProf Installed program profile.

SEE ALSO

SG(3), SG_Intro(3), SG_Program(3), SG_View(3)
http://developer.nvidia.com/page/cg_main.html
http://developer.nvidia.com/object/cg_faq.html

HISTORY

The SG_CgProgram object class first appeared in FreeSG 1.0.
Csoft.net ElectronTubeStore.com