Comments (5)
I'm not sure if the issue area is the right place to discuss these kind
of questions.
As a hint, you may be interested in this article
http://www.freepascal-meets-sdl.net/chapter-10-sdl-modern-opengl/ though.
Am 10.05.2016 um 22:38 schrieb basisbit:
what OpenGL headers do you suggest to use in combination with these
Pascal-SDL-2-Headers?
I am currently using an own heavily modified version of the jedi-sdl
headers but they only sorta work with up to OpenGL 2 stuff.
I also tried dglOpenGL headers but they use different types in many
places so I was not able to hand over the opengl context from
SDL_GL_CreateContext to be used by the dglOpenGL code.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#33
from pascal-sdl-2-headers.
sorry, but that blog post is not really helpfull. to me it looks like you are using the compilers gl and glext units instead of the dglOpenGL and you only use stuff already available in the OpenGL 2 headers.
I am the developer of https://github.com/UltraStar-Deluxe/USDX and also recently switched to the Pascal-SDL-2-Headers. I wasn't able to get rid of the old jedi-sdl-opengl implementation (which is provided by freepascal compiler) and at the same time still use any glext or glu functions.
In my opinion this issue here in the project issue-tracker is the correct place to discuss about how to solve the problem that freepascal and Pascal-SDL-2-Headers are missing usable and somewhat current OpenGL headers.
from pascal-sdl-2-headers.
I recommend dglOpenGL.pas, I used something like this (years ago):
https://github.com/ev1313/EVEngine/blob/master/evmain.pas#L662
Especially these lines are after SDL_GL_CreateContext important:
InitOpenGL; ReadExtensions; ReadImplementationProperties;
from pascal-sdl-2-headers.
I'm sorry if the article wasn't helpful. Seems I missed your point.
To me it is more like a general problem if Free Pascal is missing usable
(stand-alone) OpenGL headers. At first sight, this is not necessarily
related to SDL (therefore my remark about the place). I can now see your
point of view though. :-)
I'd appreciate to see if you can get dglOpenGL.pas get to work within
your project. Good luck.
from pascal-sdl-2-headers.
in case someone else is searching for example code on how to get this working, feel free to take a look at https://github.com/UltraStar-Deluxe/USDX/blob/40076776ac5afca05bae90d6b4299f43c4923593/src/base/UGraphic.pas#L597
from pascal-sdl-2-headers.
Related Issues (20)
- implementation expected but ; found error in SDL2_net.pas HOT 5
- Bugs in sdlsyswm.inc HOT 5
- Missing field "last_fullscreen_flags" in TSDL_Window HOT 2
- Delphi compilation HOT 2
- f21f039 broke Free Pascal support HOT 1
- Linux jedi.inc compile problems HOT 2
- Invalid TSDL_RendererFlip declaration HOT 2
- Missing SDL_GL_GetDrawableSize HOT 2
- post link is wrong for dgl sources HOT 2
- it Can be used in the firemonkey? HOT 1
- missing some core units HOT 1
- sdl2.0.8 crashes with software rasterizer HOT 10
- Switch to GitLab? (MS bought GitHub) HOT 5
- Change license in accordance with SDL 2 library? HOT 4
- A small bug in sdl2_ttf.pas HOT 1
- Returning PAnsiChar instead of PChar HOT 4
- Compiling for Android from Delphi HOT 4
- more of s uggestion than a bug HOT 2
- Support static linking HOT 2
- Kindly asking for integrating the pull requests. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pascal-sdl-2-headers.