You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
566 B
28 lines
566 B
//
|
|
// basic.h
|
|
// J
|
|
//
|
|
// Created by Joshua Moerman on 8/28/11.
|
|
// Copyright 2011 Vadovas. All rights reserved.
|
|
//
|
|
|
|
/*
|
|
This file will be included by all headers that need opengl. It alse defines a useful error checking function.
|
|
|
|
There may be some notes here and there (especially in the fbo and shader headers) about OpenGL ES2, those notes can be educational ;).
|
|
*/
|
|
|
|
#ifndef J_basic_h
|
|
#define J_basic_h
|
|
|
|
#include <stdexcept>
|
|
#include "to_string.h"
|
|
|
|
#import <OpenGLES/ES2/gl.h>
|
|
#import <OpenGLES/ES2/glext.h>
|
|
|
|
namespace J {
|
|
void check_error();
|
|
}
|
|
|
|
#endif
|
|
|