简体   繁体   English

旧版OpenGL纹理

[英]Legacy OpenGL Textures

Using LWJGL and PNGDecoder and I've found the documentation to be less than helpful when it comes to textures. 使用LWJGL和PNGDecoder时,我发现该文档对纹理的帮助不大。 I understand the basic concepts concerning them, but I don't know what functions to call (except the calls to create the texture ByteBuffer, upload the data, but not to actually make use of it), and I have no idea what to use in legacy OpenGL (in this case, GL 1.4), as otherwise shaders are required, and I wasn't aware of GL 1.9 and lower making use of shaders. 我了解有关它们的基本概念,但是我不知道要调用什么函数(除了创建纹理ByteBuffer,上传数据但实际上并未使用它的调用),而且我不知道该使用什么功能在旧版OpenGL(在本例中为GL 1.4)中,否则需要着色器,而我不知道GL 1.9及更低版本使用着色器。

I am using this to teach game development to other students, which I stated in a previous post. 我在前一篇文章中曾说过,我正在用它来向其他学生教授游戏开发。 I understand the concepts concerning them, I just don't understand what actual calls to make to get it all to render. 我了解与它们有关的概念,但我只是不了解为了使所有内容都能渲染而实际需要进行的调用。 I suppose that wasn't clear last time, I need to know the specifics, but I have conceptual knowledge. 我想上次还不清楚,我需要知道具体细节,但是我有概念上的知识。 Sorry for leaving out that information. 很抱歉遗漏该信息。

There's no OpenGL-1.9, the last OpenGL-1.x version was OpenGL-1.5. 没有OpenGL-1.9,最新的OpenGL-1.x版本是OpenGL-1.5。

If you're interested in legacy OpenGL I suggest you read the NeHe tutorials then. 如果您对旧版OpenGL感兴趣,建议您阅读NeHe教程。 Outdated, but in your case what you're looking for. 过时了,但在您要寻找的东西中。 NeHe Lesson 6 – Texture Mapping should cover your interests. NeHe第6课-纹理映射应涵盖您的兴趣。 There's even a LWJGL port source code download for it. 甚至还有LWJGL端口源代码下载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM