FreeBSD Manual Pages
SG_PROGRAM(3) Library Functions Manual SG_PROGRAM(3) NAME SG_Program -- Agar-SG vertex/fragment program SYNOPSIS #include <agar/core.h> #include <agar/sg.h> DESCRIPTION The SG_Program object represents a generic vertex or pixel shader pro- gram. Applications will rarely use the SG_Program interface directly, since programs in specific languages will use subclasses such as SG_CgProgram(3). INHERITANCE HIERARCHY AG_Object(3) -> SG_Program. INTERNAL WIDGET API The following functions are used by SG_View(3) (or derived widgets), when rendering a scene. int SG_ProgramInstall(SG_Program *prog, SG_View *view) void SG_ProgramDeinstall(SG_Program *prog, SG_View *view) void SG_ProgramBind(SG_Program *prog, SG_View *view) void SG_ProgramUnbind(SG_Program *prog, SG_View *view) The SG_ProgramInstall() 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. SG_ProgramDeinstall() deinstalls / releases the program defined in prog. SG_ProgramBind() binds the program defined in prog to the current scene. SG_ProgramUnbind() unbinds the program defined in prog from the current scene. SEE ALSO SG(3), SG_CgProgram(3), SG_Intro(3), SG_View(3) HISTORY The SG_Program object class first appeared in Agar 1.6.0. Agar 1.7 December 21, 2022 SG_PROGRAM(3)
NAME | SYNOPSIS | DESCRIPTION | INHERITANCE HIERARCHY | INTERNAL WIDGET API | SEE ALSO | HISTORY
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=SG_Program&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>
