зеркало из https://github.com/xamarin/mac-samples.git
86cfbda0ed | ||
---|---|---|
.. | ||
GLSL | ||
Screenshots | ||
AppDelegate.cs | ||
GLSLShader.csproj | ||
GLSLShader.sln | ||
Info.plist | ||
Main.cs | ||
MainMenu.xib | ||
MainMenu.xib.designer.cs | ||
MainWindow.cs | ||
MainWindow.xib | ||
MainWindow.xib.designer.cs | ||
MainWindowController.cs | ||
Metadata.xml | ||
MyOpenGLView.cs | ||
README.md | ||
Scene.cs |
README.md
GLSLShader
Simple GLSL shader harness program. Does nothing more than draw a line on the screen. The color is controlled by the shader.vert GSL source.
Concepts shown:
- Create a shader program.
- Load GLSL source from a file.
- Compile the source to attach to a Shader program.
- Use Program Parameters.
- Shader Program linkage.
- Obtaining log info for the different program objects.