Re: Loading vertex arrays in the graphics card ?
Subject : Re: Loading vertex arrays in the graphics card ?
From: "Dario Accornero" <email@hidden >
Date: Tue, 28 Dec 2004 13:33:39 +0100
Delivered-to: email@hidden
Delivered-to: email@hidden
Fred,
The extension is not in the headers yet (who knows why, given that it's been
missing for a few dot releases now), but you can still use it if you stick
the following in some header file of yours:
// ARB_vertex_buffer_object
#ifndef GL_ARB_vertex_buffer_object
extern "C" {
#include <stdint.h>
typedef intptr_t GLintptrARB;
typedef uintptr_t GLsizeiptrARB;
extern void glBindBufferARB(GLenum target, GLuint buffer);
extern void glDeleteBuffersARB(GLsizei n, const GLuint *buffers);
extern void glGenBuffersARB(GLsizei n, GLuint *buffers);
extern GLboolean glIsBufferARB(GLuint buffer);
extern void glBufferDataARB(GLenum target, GLsizeiptrARB size,
const GLvoid *data, GLenum usage);
extern void glBufferSubDataARB(GLenum target, GLintptrARB offset,
GLsizeiptrARB size, const GLvoid *data);
extern void glGetBufferSubDataARB(GLenum target, GLintptrARB offset,
GLsizeiptrARB size, GLvoid *data);
extern void *glMapBufferARB(GLenum target, GLenum access);
extern GLboolean glUnmapBufferARB(GLenum target);
extern void glGetBufferParameterivARB(GLenum target,
GLenum pname, GLint *params);
extern void glGetBufferPointervARB(GLenum target,
GLenum pname, GLvoid **params);
#define GL_ARRAY_BUFFER_ARB 0x8892
#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893
#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894
#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
#define GL_STREAM_DRAW_ARB 0x88E0
#define GL_STREAM_READ_ARB 0x88E1
#define GL_STREAM_COPY_ARB 0x88E2
#define GL_STATIC_DRAW_ARB 0x88E4
#define GL_STATIC_READ_ARB 0x88E5
#define GL_STATIC_COPY_ARB 0x88E6
#define GL_DYNAMIC_DRAW_ARB 0x88E8
#define GL_DYNAMIC_READ_ARB 0x88E9
#define GL_DYNAMIC_COPY_ARB 0x88EA
#define GL_READ_ONLY_ARB 0x88B8
#define GL_WRITE_ONLY_ARB 0x88B9
#define GL_READ_WRITE_ARB 0x88BA
#define GL_BUFFER_SIZE_ARB 0x8764
#define GL_BUFFER_USAGE_ARB 0x8765
#define GL_BUFFER_ACCESS_ARB 0x88BB
#define GL_BUFFER_MAPPED_ARB 0x88BC
#define GL_BUFFER_MAP_POINTER_ARB 0x88BD
}
#endif // ARB_vertex_buffer_objects
HTH,
Dario
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden
This email sent to email@hidden
Prev by Date:
TexCoordinates
Next by Date:
ATIRadeon::submit_buffer: Overflowed block waiting for FIFO space Yes, it is me. I am back. New email address. Same me. I am working on a new port and have just started with the code. It was all written using OpenGL on Windows and Linux so I don't have to play with DirectX APIs this time. yea! Anyway, I am having a problem and I was wondering if anyone could point me in the right direction. I can run the game and navigate through all the options screens and start a game, but when it gets to the actual 3d view of the world, my machine locks up. I have ssh'd in and started the app remotely and I can still do a top and other commands, but the screen on the machine running the game is frozen. I can't kill the game process from the ssh session and if I start gdb from the ssh session to start the app, when it crashes that connection is frozen as well. I am guessing it is some kind of driver bug, but that is only a guess. I have email ATI about it, but I thought I'd post here in hopes that someone has some pointers. Any likely things in the code that I should look for and pull out to see if this problem goes away? After I reboot the machine, I find entries in the system log like the one below. The blocks keep repeating every 11 seconds. Dec 27 21:52:24 localhost kernel: ** ASIC Hang Log Start ** Dec 27 21:52:24 localhost kernel: 0x01004c57 2f000203 00000007 00000003 Dec 27 21:52:24 localhost kernel: 0x2833fe83 c0003c0c 00000002 00000008 Dec 27 21:52:24 localhost kernel: 0x00004443 01e1f82f 00002727 80116100 Dec 27 21:52:24 localhost kernel: 0x60000038 001e0000 51b3a300 70000a04 Dec 27 21:52:24 localhost kernel: 0x080a0f00 70000000 d4f40002 Dec 27 21:52:24 localhost kernel: 0:0x0000070e Dec 27 21:52:24 localhost kernel: 1:0x00c01012 Dec 27 21:52:24 localhost kernel: 2:0x80000000 Dec 27 21:52:24 localhost kernel: 3:0x80000000 Dec 27 21:52:24 localhost kernel: 4:0x80000000 Dec 27 21:52:24 localhost kernel: 5:0x80000000 Dec 27 21:52:24 l ocalhost kernel: 6:0x80000000 Dec 27 21:52:24 localhost kernel: 7:0x80000000 Dec 27 21:52:24 localhost kernel: 8:0x00000717 Dec 27 21:52:24 localhost kernel: 9:0x01ee700c Dec 27 21:52:24 localhost kernel: 10:0x80000000 Dec 27 21:52:24 localhost kernel: 11:0x80000000 Dec 27 21:52:24 localhost kernel: 12:0x00000714 Dec 27 21:52:24 localhost kernel: 13:0x04010000 Dec 27 21:52:24 localhost kernel: 14:0x00010715 Dec 27 21:52:24 localhost kernel: 15:0x11000103 Dec 27 21:52:24 localhost kernel: 16:0x8000004e Dec 27 21:52:24 localhost kernel: 17:0x00000750 Dec 27 21:52:24 localhost kernel: 18:0x00000000 Dec 27 21:52:24 localhost kernel: 19:0x00000749 Dec 27 21:52:24 localhost kernel: 20:0x00000000 Dec 27 21:52:24 localhost kernel: 21:0x00010741 Dec 27 21:52:24 localhost kernel: 22:0x00000000 Dec 27 21:52:24 localhost kernel: 23:0x00000000 Dec 27 21:52:24 localhost kernel: 24:0x00000722 Dec 27 21:52:24 localhost kernel: 25:0x8000004e Dec 27 21:52:24 localhost kernel: 26:0x0000070e De c 27 21:52:24 localhost kernel: 27:0x00c01012 Dec 27 21:52:24 localhost kernel: 28:0x00050766 Dec 27 21:52:24 localhost kernel: 29:0x4261fd1b Dec 27 21:52:24 localhost kernel: 30:0x4406a000 Dec 27 21:52:24 localhost kernel: 31:0xc2c8fd6d Dec 27 21:52:24 localhost kernel: 32:0x43f9c000 Dec 27 21:52:25 localhost kernel: 33:0x3f000000 Dec 27 21:52:25 localhost kernel: 34:0x3f000000 Dec 27 21:52:25 localhost kernel: 35:0x00000713 Dec 27 21:52:25 localhost kernel: 36:0x0b10aadf Dec 27 21:52:25 localhost kernel: 37:0x00000880 Dec 27 21:52:25 localhost kernel: 38:0x00010010 Dec 27 21:52:25 localhost kernel: 39:0x000f8881 Dec 27 21:52:25 localhost kernel: 40:0x00060334 Dec 27 21:52:25 localhost kernel: 41:0x437d0000 Dec 27 21:52:25 localhost kernel: 42:0x43f70000 Dec 27 21:52:25 localhost kernel: 43:0x00000000 Dec 27 21:52:25 localhost kernel: 44:0x3f800000 Dec 27 21:52:25 localhost kernel: 45:0x3f800000 Dec 27 21:52:25 localhost kernel: 46:0x3f800000 Dec 27 21:52:25 localhost kerne l: 47:0x3f800000 Dec 27 21:52:25 localhost kernel: 48:0x3f800000 Dec 27 21:52:25 localhost kernel: 49:0x00000000 Dec 27 21:52:25 localhost kernel: 50:0x00000000 Dec 27 21:52:25 localhost kernel: 51:0x3f800000 Dec 27 21:52:25 localhost kernel: 52:0x437d0000 Dec 27 21:52:25 localhost kernel: 53:0x44148000 Dec 27 21:52:25 localhost kernel: 54:0x00000000 Dec 27 21:52:25 localhost kernel: 55:0x3f800000 Dec 27 21:52:25 localhost kernel: 56:0x3f800000 Dec 27 21:52:25 localhost kernel: 57:0x3f800000 Dec 27 21:52:25 localhost kernel: 58:0x3f800000 Dec 27 21:52:25 localhost kernel: 59:0x3f800000 Dec 27 21:52:25 localhost kernel: 60:0x00000000 Dec 27 21:52:25 localhost kernel: 61:0x3f800000 Dec 27 21:52:25 localhost kernel: 62:0x3f800000 Dec 27 21:52:25 localhost kernel: 63:0x44234000 Dec 27 21:52:25 localhost kernel: 64:0x43f70000 Dec 27 21:52:25 localhost kernel: 65:0x00000000 Dec 27 21:52:25 localhost kernel: 66:0x3f800000 Dec 27 21:52:25 localhost kernel: 67:0x3f800000 Dec 27 21:52 :25 localhost kernel: 68:0x3f800000 Dec 27 21:52:25 localhost kernel: 69:0x3f800000 Dec 27 21:52:25 localhost kernel: 70:0x3f800000 Dec 27 21:52:25 localhost kernel: 71:0x3f800000 Dec 27 21:52:25 localhost kernel: 72:0x00000000 Dec 27 21:52:25 localhost kernel: 73:0x3f800000 Dec 27 21:52:25 localhost kernel: 74:0x437d0000 Dec 27 21:52:25 localhost kernel: 75:0x44148000 Dec 27 21:52:25 localhost kernel: 76:0x00000000 Dec 27 21:52:25 localhost kernel: 77:0x3f800000 Dec 27 21:52:25 localhost kernel: 78:0x3f800000 Dec 27 21:52:25 localhost kernel: 79:0x3f800000 Dec 27 21:52:25 localhost kernel: 80:0x3f800000 Dec 27 21:52:25 localhost kernel: 81:0x3f800000 Dec 27 21:52:25 localhost kernel: 82:0x00000000 Dec 27 21:52:25 localhost kernel: 83:0x3f800000 Dec 27 21:52:25 localhost kernel: 84:0x3f800000 Dec 27 21:52:25 localhost kernel: 85:0x44234000 Dec 27 21:52:25 localhost kernel: 86:0x44148000 Dec 27 21:52:25 localhost kernel: 87:0x00000000 Dec 27 21:52:25 localhost kernel: 88:0x3f 800000 Dec 27 21:52:25 localhost kernel: 89:0x3f800000 Dec 27 21:52:25 localhost kernel: 90:0x3f800000 Dec 27 21:52:25 localhost kernel: 91:0x3f800000 Dec 27 21:52:25 localhost kernel: 92:0x3f800000 Dec 27 21:52:25 localhost kernel: 93:0x3f800000 Dec 27 21:52:25 localhost kernel: 94:0x3f800000 Dec 27 21:52:25 localhost kernel: 95:0x3f800000 Dec 27 21:52:25 localhost kernel: 96:0x44234000 Dec 27 21:52:25 localhost kernel: 97:0x43f70000 Dec 27 21:52:25 localhost kernel: 98:0x00000000 Dec 27 21:52:25 localhost kernel: 99:0x3f800000 Dec 27 21:52:25 localhost kernel: 100:0x3f800000 Dec 27 21:52:25 localhost kernel: 101:0x3f800000 Dec 27 21:52:25 localhost kernel: 102:0x3f800000 Dec 27 21:52:25 localhost kernel: 103:0x3f800000 Dec 27 21:52:25 localhost kernel: 104:0x3f800000 Dec 27 21:52:25 localhost kernel: 105:0x00000000 Dec 27 21:52:25 localhost kernel: 106:0x3f800000 Dec 27 21:52:25 localhost kernel: 107:0x0000070f Dec 27 21:52:25 localhost kernel: 108:0x00008c15 Dec 27 21:52: 25 localhost kernel: 109:0x00000761 Dec 27 21:52:25 localhost kernel: 110:0xffffffff Dec 27 21:52:25 localhost kernel: 111:0x80000000 Dec 27 21:52:25 localhost kernel: 112:0x80000000 Dec 27 21:52:25 localhost kernel: 113:0x0000070b Dec 27 21:52:25 localhost kernel: 114:0xd0000024 Dec 27 21:52:25 localhost kernel: 115:0x0000075f Dec 27 21:52:25 localhost kernel: 116:0xff000000 Dec 27 21:52:25 localhost kernel: 117:0x00000706 Dec 27 21:52:25 localhost kernel: 118:0x00735b7f Dec 27 21:52:25 localhost kernel: 119:0x00000880 Dec 27 21:52:25 localhost kernel: 120:0x0001007b Dec 27 21:52:25 localhost kernel: 121:0x00038881 Dec 27 21:52:25 localhost kernel: 122:0x00000000 Dec 27 21:52:25 localhost kernel: 123:0x40000000 Dec 27 21:52:25 localhost kernel: 124:0x3a2ec33e Dec 27 21:52:25 localhost kernel: 125:0x00000000 Dec 27 21:52:25 localhost kernel: 126:0x00000899 Dec 27 21:52:25 localhost kernel: 127:0x10000300 Dec 27 21:52:25 localhost kernel: 128:0x000101ce Dec 27 21:52:25 localh ost kernel: 129:0x1052a020 Dec 27 21:52:25 localhost kernel: 130:0x000155ac Dec 27 21:52:25 localhost kernel: 131:0x00000578 Dec 27 21:52:25 localhost kernel: 132:0x0058273e Dec 27 21:52:25 localhost kernel: 133:0x80000000 Dec 27 21:52:25 localhost kernel: 134:0x000101ce Dec 27 21:52:25 localhost kernel: 135:0x100e0020 Dec 27 21:52:25 localhost kernel: 136:0x00000012 Dec 27 21:52:25 localhost kernel: 137:0x00000578 Dec 27 21:52:26 localhost kernel: 138:0x0058273f Dec 27 21:52:26 localhost kernel: 139:0x80000000 Dec 27 21:52:26 localhost kernel: 140:0x000101ce Dec 27 21:52:26 localhost kernel: 141:0x1024a020 Dec 27 21:52:26 localhost kernel: 142:0x0001ffb6 Dec 27 21:52:26 localhost kernel: 143:0x00000578 Dec 27 21:52:26 localhost kernel: 144:0x00582740 Dec 27 21:52:26 localhost kernel: 145:0x80000000 Dec 27 21:52:26 localhost kernel: 146:0x000101ce Dec 27 21:52:26 localhost kernel: 147:0x10102020 Dec 27 21:52:26 localhost kernel: 148:0x000001ec Dec 27 21:52:26 localhost kerne l: 149:0x00000578 Dec 27 21:52:26 localhost kernel: 150:0x00582741 Dec 27 21:52:26 localhost kernel: 151:0x80000000 Dec 27 21:52:26 localhost kernel: 152:0x000101ce Dec 27 21:52:26 localhost kernel: 153:0x105aa020 Dec 27 21:52:26 localhost kernel: 154:0x00000208 Dec 27 21:52:26 localhost kernel: 155:0x00000578 Dec 27 21:52:26 localhost kernel: 156:0x00582742 Dec 27 21:52:26 localhost kernel: 157:0x80000000 Dec 27 21:52:26 localhost kernel: 158:0x000101ce Dec 27 21:52:26 localhost kernel: 159:0x10000020 Dec 27 21:52:26 localhost kernel: 160:0x00000002 Dec 27 21:52:26 localhost kernel: 161:0x000101ce Dec 27 21:52:26 localhost kernel: 162:0x10002020 Dec 27 21:52:26 localhost kernel: 163:0x00000002 Dec 27 21:52:26 localhost kernel: 164:0x000101ce Dec 27 21:52:26 localhost kernel: 165:0x10004020 Dec 27 21:52:26 localhost kernel: 166:0x00000002 Dec 27 21:52:26 localhost kernel: 167:0x000101ce Dec 27 21:52:26 localhost kernel: 168:0x10006020 Dec 27 21:52:26 localhost kernel: 169:0x 00000002 Dec 27 21:52:26 localhost kernel: 170:0x000101ce Dec 27 21:52:26 localhost kernel: 171:0x10008020 Dec 27 21:52:26 localhost kernel: 172:0x00000002 Dec 27 21:52:26 localhost kernel: 173:0x000101ce Dec 27 21:52:26 localhost kernel: 174:0x1000a020 Dec 27 21:52:26 localhost kernel: 175:0x00000002 Dec 27 21:52:26 localhost kernel: 176:0x000101ce Dec 27 21:52:26 localhost kernel: 177:0x1000c020 Dec 27 21:52:26 localhost kernel: 178:0x00000002 Dec 27 21:52:26 localhost kernel: 179:0x000101ce Dec 27 21:52:26 localhost kernel: 180:0x1000e020 Dec 27 21:52:26 localhost kernel: 181:0x00000002 Dec 27 21:52:26 localhost kernel: 182:0x000101ce Dec 27 21:52:26 localhost kernel: 183:0x10010020 Dec 27 21:52:26 localhost kernel: 184:0x00000002 Dec 27 21:52:26 localhost kernel: 185:0x000101ce Dec 27 21:52:26 localhost kernel: 186:0x10012020 Dec 27 21:52:26 localhost kernel: 187:0x00000002 Dec 27 21:52:26 localhost kernel: 188:0x000101ce Dec 27 21:52:26 localhost kernel: 189:0x10014020 Dec 27 21:52:26 localhost kernel: 190:0x00000002 Dec 27 21:52:26 localhost kernel: 191:0x000101ce Dec 27 21:52:26 localhost kernel: 192:0x10016020 Dec 27 21:52:26 localhost kernel: 193:0x00000002 Dec 27 21:52:26 localhost kernel: 194:0x000101ce Dec 27 21:52:26 localhost kernel: 195:0x10018020 Dec 27 21:52:26 localhost kernel: 196:0x00000002 Dec 27 21:52:26 localhost kernel: 197:0x000101ce Dec 27 21:52:26 localhost kernel: 198:0x1001a020 Dec 27 21:52:26 localhost kernel: 199:0x00000002 Dec 27 21:52:26 localhost kernel: 200:0x000101ce Dec 27 21:52:26 localhost kernel: 201:0x1001c020 Dec 27 21:52:26 localhost kernel: 202:0x00000002 Dec 27 21:52:26 localhost kernel: 203:0x000101ce Dec 27 21:52:26 localhost kernel: 204:0x1001e020 Dec 27 21:52:26 localhost kernel: 205:0x00000002 Dec 27 21:52:26 localhost kernel: 206:0x000101ce Dec 27 21:52:26 localhost kernel: 207:0x10e16a00 Dec 27 21:52:26 localhost kernel: 208:0x00000018 Dec 27 21:52:26 localhost kernel: 209:0x00000578 Dec 27 21 :52:26 localhost kernel: 210:0x00582743 Dec 27 21:52:26 localhost kernel: 211:0x80000000 Dec 27 21:52:26 localhost kernel: 212:0x000101ce Dec 27 21:52:26 localhost kernel: 213:0x105aa840 Dec 27 21:52:26 localhost kernel: 214:0x00000018 Dec 27 21:52:26 localhost kernel: 215:0x00000578 Dec 27 21:52:26 localhost kernel: 216:0x00582744 Dec 27 21:52:26 localhost kernel: 217:0x80000000 Dec 27 21:52:26 localhost kernel: 218:0x000101ce Dec 27 21:52:26 localhost kernel: 219:0x10000020 Dec 27 21:52:26 localhost kernel: 220:0x00000002 Dec 27 21:52:26 localhost kernel: 221:0x000101ce Dec 27 21:52:26 localhost kernel: 222:0x10002020 Dec 27 21:52:26 localhost kernel: 223:0x00000002 Dec 27 21:52:26 localhost kernel: 224:0x000101ce Dec 27 21:52:26 localhost kernel: 225:0x10004020 Dec 27 21:52:26 localhost kernel: 226:0x00000002 Dec 27 21:52:26 localhost kernel: 227:0x000101ce Dec 27 21:52:26 localhost kernel: 228:0x10006020 Dec 27 21:52:26 localhost kernel: 229:0x00000002 Dec 27 21:52:26 lo calhost kernel: 230:0x000101ce Dec 27 21:52:26 localhost kernel: 231:0x10008020 Dec 27 21:52:26 localhost kernel: 232:0x00000002 Dec 27 21:52:26 localhost kernel: 233:0x000101ce Dec 27 21:52:26 localhost kernel: 234:0x1000a020 Dec 27 21:52:26 localhost kernel: 235:0x00000002 Dec 27 21:52:26 localhost kernel: 236:0x000101ce Dec 27 21:52:27 localhost kernel: 237:0x1000c020 Dec 27 21:52:27 localhost kernel: 238:0x00000002 Dec 27 21:52:27 localhost kernel: 239:0x000101ce Dec 27 21:52:27 localhost kernel: 240:0x1000e020 Dec 27 21:52:27 localhost kernel: 241:0x00000002 Dec 27 21:52:27 localhost kernel: 242:0x000101ce Dec 27 21:52:27 localhost kernel: 243:0x10010020 Dec 27 21:52:27 localhost kernel: 244:0x00000002 Dec 27 21:52:27 localhost kernel: 245:0x000101ce Dec 27 21:52:27 localhost kernel: 246:0x10012020 Dec 27 21:52:27 localhost kernel: 247:0x00000002 Dec 27 21:52:27 localhost kernel: 248:0x000101ce Dec 27 21:52:27 localhost kernel: 249:0x10014020 Dec 27 21:52:27 localhost k ernel: 250:0x00000002 Dec 27 21:52:27 localhost kernel: 251:0x000101ce Dec 27 21:52:27 localhost kernel: 252:0x10016020 Dec 27 21:52:27 localhost kernel: 253:0x00000002 Dec 27 21:52:27 localhost kernel: 254:0x0058273d Dec 27 21:52:27 localhost kernel: 255:0x80000000 Dec 27 21:52:27 localhost kernel: 0x60977fb0 Dec 27 21:52:27 localhost kernel: ** ASIC Hang Log End ** Dec 27 21:52:27 localhost kernel: ATIRadeon::submit_buffer: Overflowed block waiting for FIFO space. Have 4, need 6. RBBM_STATUS 0x80116100. VAP_CNTL_STATUS 0xd4f40002 Howard Shere http://blogs.greendragon.com/index.php/gdc Altair 8800a to Mac OS X so far...
Previous by thread:
Re: Loading vertex arrays in the graphics card ?
Next by thread:
TexCoordinates
Index(es):
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.