GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SG_PROGRAM(3) FreeBSD Library Functions Manual SG_PROGRAM(3)

SG_ProgramAgar-SG vertex/fragment program

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

The SG_Program object represents a generic vertex or pixel shader program. Applications will rarely use the SG_Program interface directly, since programs in specific languages will use subclasses such as SG_CgProgram(3).

AG_Object(3) -> SG_Program.

The following functions are used by SG_View(3) (or derived widgets), when rendering a scene.


int
(SG_Program *prog, SG_View *view);


void
(SG_Program *prog, SG_View *view);


void
(SG_Program *prog, SG_View *view);


void
(SG_Program *prog, SG_View *view);

The () function installs the program defined in prog. This generally involves verifying, compiling and uploading the code to the hardware. The program is not effective until bound.

() deinstalls / releases the program defined in prog.

() binds the program defined in prog to the current scene.

() unbinds the program defined in prog from the current scene.

SG(3), SG_CgProgram(3), SG_Intro(3), SG_View(3)

The SG_Program object class first appeared in Agar 1.6.0.

December 21, 2022 Agar 1.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.