![]() ![]() ![]() Just like with the text button, these last two functions are both identical, so I will only be documenting one of them. ![]() Basically, you take a BufferedImage, use getRGB() to get the RGB of each pixel, take that data and put it into a ByteBuffer (the data type used to input image data to OpenGL), set some texture data, and create the GL_TEXTURE_2D. The first one, nkbuttonimage(), creates a button with an images in it while the second two, nkbuttonimagelabel() and nkbuttonimagetext(), both create a button with an image and text. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |