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

Login with username, password and session length

 
Advanced search

1397321 Posts in 67457 Topics- by 60681 Members - Latest Member: benchmarkses

December 07, 2021, 11:19:24 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)I cant understand opengl
Pages: [1]
Print
Author Topic: I cant understand opengl  (Read 305 times)
NilGAYman
Level 0
*


View Profile
« on: October 26, 2021, 12:11:58 PM »

Ok so Ive been trying to work with OpenGl on java. But I dont want to use any kind of third party library because I dont want to go through the risk of my computer getting a virus. But I still cant understand what should I do to use OpenGL without any kind of library
Logged
InfiniteStateMachine
Level 10
*****



View Profile WWW
« Reply #1 on: October 26, 2021, 03:42:26 PM »

If you don't want to use a library you'd have to write your own library where you bind openGL to java via JNI or something like that.

Haven't used Java in over a decade but back then LWJGL was a pretty good way to go. There was also JOGL but I think that might be long dead.
Logged

NilGAYman
Level 0
*


View Profile
« Reply #2 on: October 26, 2021, 04:28:36 PM »

Um ok, but I was digging through various tutorials and I wasnt able to find info on how to do that
Logged
InfiniteStateMachine
Level 10
*****



View Profile WWW
« Reply #3 on: October 26, 2021, 10:24:22 PM »

You're looking for tutorials on how to write your own binding library? If so I would look up C function JNI binding on google.


but seriously, I would recommend just using a library. If you are concerned about virii just get the source code and audit it.
Logged

Thaumaturge
Level 10
*****



View Profile WWW
« Reply #4 on: October 27, 2021, 12:29:41 PM »

Regarding the matter of viruses, I'd suggest looking for a library (or set of libraries) that has an established user-base: the fact that people are using it may at least be an encouraging indication that it's not virus-infected. Better yet is a community, in which reports of viruses (and other issues) might be voiced by the library's users.
Logged

Moons in Crystal
A Fantasy Top-Down Space-Shooter Metroidvania
Itch page ~ Twitter
sambloom
Level 0
**



View Profile
« Reply #5 on: October 27, 2021, 11:46:56 PM »

I mean, OpenGL is a third-party library  Shrug
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic