SDL::OpenGL man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

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.14.1			  2011-07-18			SDL::OpenGL(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net