Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

OpenGLApplication

Language: Oxygene, Platform: Cooper, Category: Android
https://github.com/remobjects/ElementsSamples/tree/master/Oxygene/Cooper/Android/OpenGLApplication

GLHelp.pas

namespace org.me.openglapplication;

interface

type
  GLHelp = public class
  private
    const Tag = 'OpenGLApplication';
  public
    class method GLCheck(errorCode: Integer);
  end;

implementation

class method GLHelp.GLCheck(errorCode: Integer);
begin
  var msg := Android.OpenGL.GLU.gluErrorString(errorCode);
  if msg <> nil then
    android.util.Log.e(Tag, 'OpenGL error: ' + msg)
end;

end.