5

特别是我需要使用着色语言 GLSL。我已经安装了 NDK、SDK 和其他所有东西并且运行正常,我使用 NDK 运行了一个带有 openGLES 2 的示例,它工作正常,问题是有很多我不明白的指令。所以我需要一个教程或书来一步一步教我

4

1 回答 1

4

I suggest that you start by reading some of the tutorials on the Khronos site and from the OpenGL Programmers Guide.

I suggest you start with the "Hello Triangle" demo first.

There are two links.

  1. Tutorial on Hello Triangle
  2. Source Code for Hello Triangle -- Look at Chapter 2

For the good old cube demo, check this out.

The code is written in WebGL, but you can convert it.

This site contains all of the downloadable samples from the Programmer's Guide. They are pretty good. They are in the source repository.

I also enjoyed looking through the "full spec" from the Khronos Site.

The Shader Language is weird at first -- but you'll grasp it with enough tutorials.

于 2011-02-18T23:35:29.807 回答