Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sdl::opengl(3) [suse man page]

SDL::OpenGL(3)						User Contributed Perl Documentation					    SDL::OpenGL(3)

NAME
SDL::OpenGL - a perl extension DESCRIPTION
SDL::OpenGL is a perl module which when used by your application exports the gl* and glu* functions into your application's primary namespace. Most of the functions described in the OpenGL 1.3 specification are currently supported in this fashion. As the implementation of the OpenGL bindings that comes with SDL_perl is largely type agnositic, there is no need to decline the function names in the fashion that is done in the C API. For example, glVertex3d is simply glVertex, and perl just does the right thing with regards to types. CAVEATS
The following methods work different in Perl than in C: glCallLists glCallLists(@array_of_numbers); Unlike the C function, which get's passed a count, a type and a list of numbers, the Perl equivalent only takes a list of numbers. Note that this is slow, since it needs to allocate memory and construct a list of numbers from the given scalars. For a faster version see glCallListsString. The following methods exist in addition to the normal OpenGL specification: glCallListsString glCallListsString($string); Works like glCallLists(), except that it needs only one parameter, a scalar holding a string. The string is interpreted as a set of bytes, and each of these will be passed to glCallLists as GL_BYTE. This is faster than glCallLists, so you might want to pack your data like this: my $lists = pack("C", @array_of_numbers); And later use it like this: glCallListsString($lists); AUTHOR
David J. Goehrig SEE ALSO
perl SDL::App perl v5.12.1 2010-07-05 SDL::OpenGL(3)

Check Out this Related Man Page

sage(3) 						     Library Functions Manual							   sage(3)

NAME
sage - The SDL library for OpenGL extensions. DESCRIPTION
#include <sage/sage.h> Sage is a small C library providing Open GL extensions to applications using SDL. It has been automatically generated from the glext.h header file from the OpenGL website. The Sage source package comes with the Perl scripts to generate new sources from updated glext.h files. Additionally, it provides a way of accessing the standard GL and GLU headers in a cross platform method. sage/GL.h and sage/GLU.h should be used in place of gl/GL.h and gl/GLU.h (or the equivalent on other platforms.) To use Sage, an application must first call sage_init once the OpenGL context has been created. This checks for the existence of each extension it knows about and links up the appropriate function pointers. The array sage_ext sets each exension that is found to 1, and 0 otherwise. Applications should check the existence of the extension in sage_ext before using it. Extensions can then be used by their name as defined in the spec. BUGS
Sage does not check to see of the OpenGL context is valid. On some systems, the standard Open GL header causes problems with sage (namespace conflicts). Apparently some broken GL implmentations may report the existence of an extension, but not actually provide it. Sage will not detect this. AUTHOR
Simon Goodall (simon (at) simongoodall.co.uk) SEE ALSO
sage_init(3) September 22, 2005 sage(3)
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

OpenGL installation on Debian Linux

Hi, I need your help in installing OpenGL in my Debian (ubuntu) Linux PC. Please elaborate the steps in a clear manner, so that I may follow the installation procedure without getting in to any problem. Also, please tell me what are the libraries should I link my program with, what are the... (0 Replies)
Discussion started by: royalibrahim
0 Replies

2. Shell Programming and Scripting

Bash equivalent of perl's pack function ?

Is there an equivalent of perl's pack function in bash ? Or in other words, how can I achieve the same thing in bash ? Much appreciated. (1 Reply)
Discussion started by: NewDeb
1 Replies

3. Shell Programming and Scripting

Process 2 lists at the same time and move files.

I have this while loop, that works but is quite slow to process though. I'm hopping there might be a faster/better way to find what I'm looking for. I have 2 lists of numbers, and want to only find files where a file name has both values present. each list has about 100 values. while... (10 Replies)
Discussion started by: whegra
10 Replies