The OpenD Programming Language

OpenGlShader.compile

Helper method to just compile some shader code and check for errors while you do glCreateShader, etc. on the outside yourself.

This just does glShaderSource and glCompileShader for the given code.

If you the OpenGlShader class constructor, you never need to call this yourself.

class OpenGlShader
static
void
compile

Meta