Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Karclintinton

Pages: [1]
1
General / Re: [SFML 2.1]Drawing with SFML and OpenGL
« on: December 06, 2014, 07:52:00 pm »
I'm not very good at navigating and searching this forum. I will try to find all these other posts you mention

2
General / [SFML 2.1]Drawing with SFML and OpenGL
« on: December 06, 2014, 06:23:05 pm »
I'm wondering if its possible to draw SFML 2d elements onto a renderWindow and to also draw OpenGL elements but without using the glPush and glPop states on the renderWindow. I'm not using the glPush and Pop states as I'm sorting my openGL rendering through shaders and not through immediate mode. I followed the SFML tutorial to draw sfml 2d elements and openGL elements through using the gl push and pop states but as that example uses immediate mode it doesn't work on the shader based system (to my knowledge). I have tried using the glPush and Pop states to test to see if it would work but regardless of the order of drawing or the order of the gl push and pop states it will cause errors with OpenGL.

I'm not sure if I'm missing something simple that will fix this or if I need to do it in a different way. It seems a little silly if its impossible to draw sfml elements and opengl elements on a programmable shader based system instead of using immediate mode?

Any help will be greatly appreciated

3
General / Re: Using OpenGL with SFML
« on: October 22, 2014, 11:46:07 pm »
So I've got the GLLoadGen stuff created and all that but I'm having troubles with including it into my project. If I include the GLloadGen before including the SFML/OpenGL.hpp it gives an error about including GLloadGen after GL.h, I understand roughly what this means so I put the include for the GLloadGen files before the SFML OpenGL include but by doing that it causes a whole bunch of functions and things which I have been using to be unavailable to include. Some stuff can be got by the double bracket :: and I understand that but stuff like glBegin becomes unavailable (reason I'm using it was just for purposes of gradually converting from immediate mode to using VBOs and VAOs and drawElements

Not sure if what I've said is understandable but if it is any ideas on what it is I need to do?

Thanks in advance

4
General / Re: Using OpenGL with SFML
« on: October 21, 2014, 01:46:44 am »
So using glLoadGen instead of Glew its given me a few questions. Firstly I'm really not all too sure how to go about using the LUA command line stuff it talks about to generate the header files for OpenGL and forgive me for seeming a little dense and newbish with all of this but say I get the glLoadGen stuff created and I link it into my project correctly. Will this then allow me to have the functionality I desire? (as I described in my first post?)

Thanks for the help so far

5
General / Using OpenGL with SFML
« on: October 21, 2014, 01:05:59 am »
I've started a project for which I wish to use SFML with OpenGL for both 2D and 3D stuff at the same time. However, when I've come to use openGL vertex Buffer Objects and stuff like that I've been unable to as I need to use GLEW or something similar? There are posts saying that SFML has that already inplace and some saying it doesn't and its really confusing with all the information saying conflicting things.

My question is how do I go about using stuff like openGL vertex buffer objects, vertex array objects, the shader functionality of openGL within SFML? I've looked into using GLEW but I'm not really sure how to go about including it as including libraries isn't one of my strong points.

Any help would be super useful

If I've posted this in the wrong area btw please let me know asap

Pages: [1]
anything