Acme-MITHALDU-BleedingOpenGL

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
Updated test.pl to support Game Mode
Implemented glutCloseFunc
Implemented glutLeaveMainLoop
Major refactoring of Makefile.PL
Renamed WGL interface option to W32API
Added help message to Makefile.PL
Added verbose option to Makefile.PL
Added documentation comments to OpenGL.xs
Added glpHasGLUT
Updated test.pl to run texhack if no GLUT
Added a countdown timer to examples/texhack
Fixed GL_X_BYTES in assign
Fixed vertex.glsl to work on newer nvidia cards
Implemented glutIgnoreKeyRepeat
Implemented glutSetKeyRepeat
Implemented glutForceJoystickFunc
Added FreeGLUT support for cygwin builds
Fixed builds for Apple's recent Mac OS changes
Added README for building on Mac OS
 
Chris Marshall

glext_consts.h  view on Meta::CPAN

723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
    i(GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER)
    i(GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER)
    i(GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER)
    i(GL_INVALID_INDEX)
#endif /* GL_VERSION_3_1 */
 
#ifndef NO_GL_VERSION_3_2
#ifndef GLEXT_64_TYPES_DEFINED
/* This code block is duplicated in glxext.h, so must be protected */
/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
/* (as used in the GL_EXT_timer_query extension). */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#elif defined(__sun__) || defined(__digital__)
#if defined(__STDC__)
#if defined(__arch64__) || defined(_LP64)
#else
#endif /* __arch64__ */
#endif /* __STDC__ */
#elif defined( __VMS ) || defined(__sgi)
#elif defined(__SCO__) || defined(__USLC__)
#elif defined(__UNIXOS2__) || defined(__SOL64__)

glext_consts.h  view on Meta::CPAN

2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
#ifndef NO_GL_ARB_texture_storage_multisample
#endif /* GL_ARB_texture_storage_multisample */
 
#ifndef NO_GL_ARB_texture_swizzle
#endif /* GL_ARB_texture_swizzle */
 
#ifndef NO_GL_ARB_texture_view
#endif /* GL_ARB_texture_view */
 
#ifndef NO_GL_ARB_timer_query
#endif /* GL_ARB_timer_query */
 
#ifndef NO_GL_ARB_transform_feedback2
#endif /* GL_ARB_transform_feedback2 */
 
#ifndef NO_GL_ARB_transform_feedback3
#endif /* GL_ARB_transform_feedback3 */
 
#ifndef NO_GL_ARB_transform_feedback_instanced
#endif /* GL_ARB_transform_feedback_instanced */

glext_consts.h  view on Meta::CPAN

3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
#endif /* GL_EXT_texture_snorm */
 
#ifndef NO_GL_EXT_texture_swizzle
    i(GL_TEXTURE_SWIZZLE_R_EXT)
    i(GL_TEXTURE_SWIZZLE_G_EXT)
    i(GL_TEXTURE_SWIZZLE_B_EXT)
    i(GL_TEXTURE_SWIZZLE_A_EXT)
    i(GL_TEXTURE_SWIZZLE_RGBA_EXT)
#endif /* GL_EXT_texture_swizzle */
 
#ifndef NO_GL_EXT_timer_query
    i(GL_TIME_ELAPSED_EXT)
#endif /* GL_EXT_timer_query */
 
#ifndef NO_GL_EXT_transform_feedback
    i(GL_TRANSFORM_FEEDBACK_BUFFER_EXT)
    i(GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT)
    i(GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT)
    i(GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT)
    i(GL_INTERLEAVED_ATTRIBS_EXT)
    i(GL_SEPARATE_ATTRIBS_EXT)
    i(GL_PRIMITIVES_GENERATED_EXT)
    i(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT)

glext_procs.h  view on Meta::CPAN

1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
#ifndef NO_GL_VERSION_3_2
#ifndef GL_VERSION_3_2
#define GL_VERSION_3_2 1
#endif
typedef struct __GLsync *GLsync;
#ifndef GLEXT_64_TYPES_DEFINED
/* This code block is duplicated in glxext.h, so must be protected */
#define GLEXT_64_TYPES_DEFINED
/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
/* (as used in the GL_EXT_timer_query extension). */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#include <inttypes.h>
#elif defined(__sun__) || defined(__digital__)
#include <inttypes.h>
#if defined(__STDC__)
#if defined(__arch64__) || defined(_LP64)
typedef long int int64_t;
typedef unsigned long int uint64_t;
#else
typedef long long int int64_t;

glext_procs.h  view on Meta::CPAN

5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
#define GL_ARB_texture_swizzle 1
#endif
#endif /* GL_ARB_texture_swizzle */
 
#ifndef NO_GL_ARB_texture_view
#ifndef GL_ARB_texture_view
#define GL_ARB_texture_view 1
#endif
#endif /* GL_ARB_texture_view */
 
#ifndef NO_GL_ARB_timer_query
#ifndef GL_ARB_timer_query
#define GL_ARB_timer_query 1
#endif
#endif /* GL_ARB_timer_query */
 
#ifndef NO_GL_ARB_transform_feedback2
#ifndef GL_ARB_transform_feedback2
#define GL_ARB_transform_feedback2 1
#endif
#endif /* GL_ARB_transform_feedback2 */
 
#ifndef NO_GL_ARB_transform_feedback3
#ifndef GL_ARB_transform_feedback3
#define GL_ARB_transform_feedback3 1

glext_procs.h  view on Meta::CPAN

11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
#ifndef GL_EXT_texture_swizzle
#define GL_EXT_texture_swizzle 1
#endif
#define GL_TEXTURE_SWIZZLE_R_EXT          0x8E42
#define GL_TEXTURE_SWIZZLE_G_EXT          0x8E43
#define GL_TEXTURE_SWIZZLE_B_EXT          0x8E44
#define GL_TEXTURE_SWIZZLE_A_EXT          0x8E45
#define GL_TEXTURE_SWIZZLE_RGBA_EXT       0x8E46
#endif /* GL_EXT_texture_swizzle */
 
#ifndef NO_GL_EXT_timer_query
#ifndef GL_EXT_timer_query
#define GL_EXT_timer_query 1
#endif
#define GL_TIME_ELAPSED_EXT               0x88BF
typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params);
typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params);
#ifdef GL_GLEXT_PROTOTYPES
GLAPI void APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params);
GLAPI void APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params);
#endif
#ifdef GL_GLEXT_PROCS
static PFNGLGETQUERYOBJECTI64VEXTPROC glGetQueryObjecti64vEXT = NULL;
static PFNGLGETQUERYOBJECTUI64VEXTPROC glGetQueryObjectui64vEXT = NULL;
#endif /* GL_GLEXT_PROCS */
#endif /* GL_EXT_timer_query */
 
#ifndef NO_GL_EXT_transform_feedback
#ifndef GL_EXT_transform_feedback
#define GL_EXT_transform_feedback 1
#endif
#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT  0x8C8E
#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84
#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85
#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F
#define GL_INTERLEAVED_ATTRIBS_EXT        0x8C8C

glext_types.h  view on Meta::CPAN

69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
typedef char GLchar;
 
 
 
 
#ifndef GLEXT_64_TYPES_DEFINED
/* This code block is duplicated in glxext.h, so must be protected */
#define GLEXT_64_TYPES_DEFINED
/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
/* (as used in the GL_EXT_timer_query extension). */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#include <inttypes.h>
#elif defined(__sun__) || defined(__digital__)
#include <inttypes.h>
#if defined(__STDC__)
#if defined(__arch64__) || defined(_LP64)
typedef long int int64_t;
typedef unsigned long int uint64_t;
#else
typedef long long int int64_t;

include/GL/glext.h  view on Meta::CPAN

1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
#endif
#endif /* GL_VERSION_3_1 */
 
#ifndef GL_VERSION_3_2
#define GL_VERSION_3_2 1
typedef struct __GLsync *GLsync;
#ifndef GLEXT_64_TYPES_DEFINED
/* This code block is duplicated in glxext.h, so must be protected */
#define GLEXT_64_TYPES_DEFINED
/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
/* (as used in the GL_EXT_timer_query extension). */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#include <inttypes.h>
#elif defined(__sun__) || defined(__digital__)
#include <inttypes.h>
#if defined(__STDC__)
#if defined(__arch64__) || defined(_LP64)
typedef long int int64_t;
typedef unsigned long int uint64_t;
#else
typedef long long int int64_t;

include/GL/glext.h  view on Meta::CPAN

4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
#endif /* GL_ARB_texture_storage_multisample */
 
#ifndef GL_ARB_texture_swizzle
#define GL_ARB_texture_swizzle 1
#endif /* GL_ARB_texture_swizzle */
 
#ifndef GL_ARB_texture_view
#define GL_ARB_texture_view 1
#endif /* GL_ARB_texture_view */
 
#ifndef GL_ARB_timer_query
#define GL_ARB_timer_query 1
#endif /* GL_ARB_timer_query */
 
#ifndef GL_ARB_transform_feedback2
#define GL_ARB_transform_feedback2 1
#endif /* GL_ARB_transform_feedback2 */
 
#ifndef GL_ARB_transform_feedback3
#define GL_ARB_transform_feedback3 1
#endif /* GL_ARB_transform_feedback3 */
 
#ifndef GL_ARB_transform_feedback_instanced

include/GL/glext.h  view on Meta::CPAN

8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
#ifndef GL_EXT_texture_swizzle
#define GL_EXT_texture_swizzle 1
#define GL_TEXTURE_SWIZZLE_R_EXT          0x8E42
#define GL_TEXTURE_SWIZZLE_G_EXT          0x8E43
#define GL_TEXTURE_SWIZZLE_B_EXT          0x8E44
#define GL_TEXTURE_SWIZZLE_A_EXT          0x8E45
#define GL_TEXTURE_SWIZZLE_RGBA_EXT       0x8E46
#endif /* GL_EXT_texture_swizzle */
 
#ifndef GL_EXT_timer_query
#define GL_EXT_timer_query 1
#define GL_TIME_ELAPSED_EXT               0x88BF
typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params);
typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params);
#ifdef GL_GLEXT_PROTOTYPES
GLAPI void APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params);
GLAPI void APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params);
#endif
#endif /* GL_EXT_timer_query */
 
#ifndef GL_EXT_transform_feedback
#define GL_EXT_transform_feedback 1
#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT  0x8C8E
#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84
#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85
#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F
#define GL_INTERLEAVED_ATTRIBS_EXT        0x8C8C
#define GL_SEPARATE_ATTRIBS_EXT           0x8C8D
#define GL_PRIMITIVES_GENERATED_EXT       0x8C87

pogl_glut.xs  view on Meta::CPAN

435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
        GLUT_PUSHMARK(sp);
        GLUT_EXTEND_STACK(sp,1);
        GLUT_PUSH_NEW_IV(win);
 
        PUTBACK;
        DO_perl_call_sv(handler, G_DISCARD);
}
 
/* Callback for glutTimerFunc */
static void generic_glut_timer_handler(int value)
{
        AV * handler_data = (AV*)value;
        SV * handler;
        int i;
        dSP;
 
        handler = *av_fetch(handler_data, 0, 0);
 
        GLUT_PUSHMARK(sp);
        GLUT_EXTEND_STACK(sp,av_len(handler_data));

pogl_glut.xs  view on Meta::CPAN

1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
        SV *    handler
        CODE:
        {
                if (!handler || !SvOK(handler)) {
                        croak("A handler must be specified");
                } else {
                        AV * handler_data = newAV();
                 
                        PackCallbackST(handler_data, 1);
                         
                        glutTimerFunc(msecs, generic_glut_timer_handler, (int)handler_data);
                }
        ENSURE_callback_thread;}
 
 
# Colors
 
#//# glutSetColor($cell, $red, $green, $blue)
void
glutSetColor(cell, red, green, blue)
        int     cell

test.pl  view on Meta::CPAN

1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
}
else
{
  glutInitWindowSize($Window_Width, $Window_Height);
  $Window_ID = glutCreateWindow( PROGRAM_TITLE );
}
 
# Get OpenGL Info
print "\n";
print PROGRAM_TITLE;
print ' (using hires timer)' if ($hasHires);
print "\n\n";
my $version = glGetString(GL_VERSION);
my $vendor = glGetString(GL_VENDOR);
my $renderer = glGetString(GL_RENDERER);
print "Using POGL v$Acme::MITHALDU::BleedingOpenGL::BUILD_VERSION\n";
print "OpenGL installation: $version\n$vendor\n$renderer\n\n";
 
print "Installed extensions (* implemented in the module):\n";
my $extensions = glGetString(GL_EXTENSIONS);
my @extensions = split(' ',$extensions);

utils/wgl_ext.txt  view on Meta::CPAN

65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
GL_EXT_texture_cube_map
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_combine
GL_EXT_texture_env_dot3
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_lod
GL_EXT_texture_lod_bias
GL_EXT_texture_mirror_clamp
GL_EXT_texture_object
GL_EXT_texture_sRGB
GL_EXT_timer_query
GL_EXT_vertex_array
GL_HP_occlusion_test
GL_IBM_rasterpos_clip
GL_IBM_texture_mirrored_repeat
GL_KTX_buffer_region
GL_NV_blend_square
GL_NV_copy_depth_to_color
GL_NV_depth_clamp
GL_NV_fence
GL_NV_float_buffer



( run in 0.294 second using v1.01-cache-2.11-cpan-87723dcf8b7 )