#I need to find a library to call glClear(GL_COLOR_BUFFER_BIT);

1 messages · Page 1 of 1 (latest)

ember helm
#

I need to find a library to call glClear(GL_COLOR_BUFFER_BIT); here is the library itself import static org.lwjgl.opengl.GL11.*; where should I look for this library itself, I did not find it in the documentation. How should I search for them ?

crude hemlockBOT
#

<@&987246399047479336> please have a look, thanks.

crude hemlockBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

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.

final epoch
#

its lwjgl?

ember helm
# final epoch its `lwjgl`?

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

ember helm
#

For example, I need to call glBegin(GL_QUADS); how do I find its library??????

azure solstice
ember helm
#

yes

#

if I write glBegin(GL_QUADS); it right now, it won't work for me (it will be red)

azure solstice
#

so you need to add lwjgl

azure solstice
ember helm
azure solstice
#

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

ember helm
#

I already have the library installed

azure solstice
#

nvm I'm dumb
uh, if you hover over the error it won't show you to import it?

ember helm
azure solstice
#

idk how VSCode works with those things, I'm sorry

high oracle
#

wont the problem being VSC ?

azure solstice
#

VSC isn't showing from where to import the glBegin

#

I recommend a proper IDE like intellij or eclipse

high oracle
#

( intellij community - there is a free version )