# Search:

Type: Posts; User: Blakeasd

Page 1 of 2 1

1. ## Thread: Make Square Fill Entire Window

by Blakeasd
Replies
6
Views
3,183

### It's starting to make more sense. I understand...

It's starting to make more sense. I understand the concept (I think) , but in terms of application I don't understand how I would implement it. I still don't see how the window's new coordinates...
2. ## Thread: Make Square Fill Entire Window

by Blakeasd
Replies
6
Views
3,183

### If I subtract (1,1) from everything I draw, what...

If I subtract (1,1) from everything I draw, what if I had something at (-1, -1)? Then wouldn't this become (-2, -2)? I though that the coordinate system ranges from -1 to 1 so that something at (-2,...
3. ## Thread: Make Square Fill Entire Window

by Blakeasd
Replies
6
Views
3,183

### I am trying to make a very simple side-scrolling...

I am trying to make a very simple side-scrolling game; I want to fill the background with a textured shape. The rectangle is made and the texture is applied, but my problem is with positioning. When...
4. ## Thread: Make Square Fill Entire Window

by Blakeasd
Replies
6
Views
3,183

### Make Square Fill Entire Window

Hello,

How do I determine what transforms I need to make a square fill an entire window in modern OpenGL? Say for example I have an 800 x 600 window and the coordinates with the vertices of two...
5. ## Thread: glDrawElementArrays and Vertex Array Objects

by Blakeasd
Replies
4
Views
1,971

### I see.. that makes sense. Thanks for your...

I see.. that makes sense. Thanks for your assistance!
6. ## Thread: glDrawElementArrays and Vertex Array Objects

by Blakeasd
Replies
4
Views
1,971

### Thanks for the link, that's one that I haven't...

Thanks for the link, that's one that I haven't seen before. Even after reading through it, I still don't understand the purpose of the Vertex Array Object. If all that needs to be done is generate a...
7. ## Thread: glDrawElementArrays and Vertex Array Objects

by Blakeasd
Replies
4
Views
1,971

### glDrawElementArrays and Vertex Array Objects

Hello. (This question pertains to the OpenGL 3.2 Core Context.)

I am having some confusion about how Vertex Array Objects work with glDrawElements. The OpenGL docs say that the indices are...
8. ## Thread: Black Screen -- Should Be a trianlge

by Blakeasd
Replies
6
Views
4,021

### This worked, I must have made a mistake while...

This worked, I must have made a mistake while following the tutorial. Thanks!
9. ## Thread: Black Screen -- Should Be a trianlge

by Blakeasd
Replies
6
Views
4,021

### I just now got OpenGL profiler downloaded and...

I just now got OpenGL profiler downloaded and here is the detail on my invalid enum:

glGetString(GL_EXTENSIONS); returns: 0x00000000
Error: GL_INVALID_ENUM
Context: 0x7f981c828800...
10. ## Thread: Black Screen -- Should Be a trianlge

by Blakeasd
Replies
6
Views
4,021

### Ok, I'm not using the APPLE() calls anymore. I am...

Ok, I'm not using the APPLE() calls anymore. I am getting OpenGL Error 1280 when I put this code above glGenVertexArrays():

GLenum err;
while ((err = glGetError()) != GL_NO_ERROR)...
11. ## Thread: Black Screen -- Should Be a trianlge

by Blakeasd
Replies
6
Views
4,021

### Black Screen -- Should Be a trianlge

Hello,

I am using OpenGL 3.2, OS X 10.8, and Xcode 4.6. I am using glfw for my window management. I am trying to draw a simple triangle using this tutorial:
open.gl

However, I don't get a...
12. ## Thread: Shader Compile Error: ERROR: 0:1: '' : syntax error #version

by Blakeasd
Replies
12
Views
13,230

### It worked! Thanks so much for the help GClements...

It worked! Thanks so much for the help GClements and Alfonse! I obtained the length of the C string (not the pointer this time) like this:
GLint arraySize = (GLint)size;

and passed it in as a...
13. ## Thread: Shader Compile Error: ERROR: 0:1: '' : syntax error #version

by Blakeasd
Replies
12
Views
13,230

### I've checked to see if my C string is my file......

I've checked to see if my C string is my file... and it is. What I mean as Objective-C being my language is that I've been programming with Objective-C for years, while I've only been using C++...
14. ## Thread: Shader Compile Error: ERROR: 0:1: '' : syntax error #version

by Blakeasd
Replies
12
Views
13,230

### There's still something wrong with my code, but I...

There's still something wrong with my code, but I don't see anything wrong. I am compiling a fragment shader underneath the vertex shader. Sometimes the vertex shader doesn't compile, sometimes the...
15. ## Thread: Shader Compile Error: ERROR: 0:1: '' : syntax error #version

by Blakeasd
Replies
12
Views
13,230

### Thanks for the reply, but now I have a different...

Thanks for the reply, but now I have a different problem. Sometimes the shader will compile, but other times it won't compile and I'll get seemingly random shader compilation errors.

Here my new...
16. ## Thread: Shader Compile Error: ERROR: 0:1: '' : syntax error #version

by Blakeasd
Replies
12
Views
13,230

### Thanks for the response. Here is my code to load...

Thanks for the response. Here is my code to load and compile the shaders:

std::ifstream vertexShaderFile;
std::string tempString;
std::string vertexShaderString;

...
17. ## Thread: Shader Compile Error: ERROR: 0:1: '' : syntax error #version

by Blakeasd
Replies
12
Views
13,230

### Shader Compile Error: ERROR: 0:1: '' : syntax error #version

Hello,

I am trying to compile a very simple vertex shader and I got this error, however I don't see anything wrong in my vertex shader. This is the error that I get:

ERROR: 0:1: '' : syntax...
18. ## Thread: glGenBuffers returns 0

by Blakeasd
Replies
2
Views
3,294

### Thanks! Though my context was set up correctly,...

Thanks! Though my context was set up correctly, you led me to think something context-wise was wrong; you were right. Apparently on OS X any OpenGL calls pertaining to setting up OpenGL must go in...
19. ## Thread: glGenBuffers returns 0

by Blakeasd
Replies
2
Views
3,294

### glGenBuffers returns 0

Hello,

I am working on OS X Mountain Lion and Xcode 4.6. I am using the Cocoa APIs to create my windows and handle events. I can't seem to get a vertex buffer generated for some reason. I use...
20. ## Thread: OpenGL Programming Guide (7th Edition) Example Not Working

by Blakeasd
Replies
3
Views
2,291

### I fixed the curly brace mismatch, but it still...

I fixed the curly brace mismatch, but it still doesn't have a complete rotation. It rotates to the left, very slightly, and stops. Any Ideas?
21. ## Thread: OpenGL Programming Guide (7th Edition) Example Not Working

by Blakeasd
Replies
3
Views
2,291

### OpenGL Programming Guide (7th Edition) Example Not Working

Hello,

I am following the OpenGL Programming Guide (7th Edition) and I can't get an example to work. In the example a square should rotate after a left mouse button click. I did not copy in...
22. ## Thread: GLUT Window Starts out Minimized

by Blakeasd
Replies
2
Views
1,883

### Re: GLUT Window Starts out Minimized

Thanks! It's fixed.
23. ## Thread: GLUT Window Starts out Minimized

by Blakeasd
Replies
2
Views
1,883

### GLUT Window Starts out Minimized

Whenever I run my GLUT OpenGL program the window starts off minimized in the dock. How can I stop this from happening? Thanks!
Here is my code:

#include <iostream>
#include <OpenGL/OpenGL.h>...
24. ## Thread: Drawing Lines in OpenGL (Mac OS X)

by Blakeasd
Replies
4
Views
3,832

### Re: Drawing Lines in OpenGL (Mac OS X)

It works now, thanks everyone!
25. ## Thread: Drawing Lines in OpenGL (Mac OS X)

by Blakeasd
Replies
4
Views
3,832

### Re: Drawing Lines in OpenGL (Mac OS X)

I added it right after

glViewport(0, 0, rectView.size.width, rectView.size.height);

in the reshape method, but the lines still don't appear.
Any Ideas?
Results 1 to 25 of 26
Page 1 of 2 1