#I need to find a library to call glClear(GL_COLOR_BUFFER_BIT);
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
I need to understand what I am importing, I need to somehow define glClear(GL_COLOR_BUFFER_BIT); it is necessary to sort import static org.lwjgl.opengl.GL11.*; nothing is said there
I can't find a description of the class containing this method there.
in my (visual code) environment, the import is not atomically created, you need to enter it yourself
For example, I need to call glBegin(GL_QUADS); how do I find its library??????
what do you mean by library?
lwjgl is the library that method comes from
yes
if I write glBegin(GL_QUADS); it right now, it won't work for me (it will be red)
so you need to add lwjgl
.
talk about it
Read the full documentation
you need to install the library into your IDE
a library is a bunch of code made for you to use
you need to tell your IDE where that code is
I already have the library installed
nvm I'm dumb
uh, if you hover over the error it won't show you to import it?
idk how VSCode works with those things, I'm sorry
wont the problem being VSC ?
VSC isn't showing from where to import the glBegin
I recommend a proper IDE like intellij or eclipse
( intellij community - there is a free version )