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


Manual Reference Pages  -  AL_GET_OPENGL_PROC_ADDRESS (3)

NAME

al_get_opengl_proc_address - Allegro 5 API

CONTENTS

Synopsis
Description
Return Value

SYNOPSIS

C]
#include <allegro5/allegro_opengl.h>

void *al_get_opengl_proc_address(const char *name) ]

DESCRIPTION

Helper to get the address of an OpenGL symbol

Example:

How to get the function I]glMultiTexCoord3fARB] that comes with ARB[aq]s Multitexture extension:
C]
// define the type of the function
   ALLEGRO_DEFINE_PROC_TYPE(void, MULTI_TEX_FUNC,
      (GLenum, GLfloat, GLfloat, GLfloat));
// declare the function pointer
   MULTI_TEX_FUNC glMultiTexCoord3fARB;
// get the address of the function
   glMultiTexCoord3fARB = (MULTI_TEX_FUNC) al_get_opengl_proc_address(
      "glMultiTexCoord3fARB");
]

If I]glMultiTexCoord3fARB] is not NULL then it can be used as if it has been defined in the OpenGL core library.
 

I]Note:] Under Windows, OpenGL functions may need a special calling convention, so it[aq]s best to always use the ALLEGRO_DEFINE_PROC_TYPE macro when declaring function pointer types for OpenGL functions.

Parameters:

name - The name of the symbol you want to link to.

RETURN VALUE

A pointer to the symbol if available or NULL otherwise.

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


Allegro reference manual AL_GET_OPENGL_PROC_ADDRESS (3)

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