| 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 25 * POSSIBILITY OF SUCH DAMAGE. |
25 * POSSIBILITY OF SUCH DAMAGE. |
| 26 */ |
26 */ |
| 27 |
27 |
| 28 #include "ascension/context.h" |
28 #include "ascension/context.h" |
| |
29 #include "ascension/error.h" |
| 29 #include "ascension/shader.h" |
30 #include "ascension/shader.h" |
| 30 #include "ascension/filesystem.h" |
31 #include "ascension/filesystem.h" |
| 31 |
32 |
| |
33 #include <string.h> |
| |
34 #include <stdio.h> |
| 32 #include <GL/glew.h> |
35 #include <GL/glew.h> |
| 33 #include <string.h> |
|
| 34 #include <cx/buffer.h> |
36 #include <cx/buffer.h> |
| 35 #include <cx/streams.h> |
37 #include <cx/streams.h> |
| 36 |
38 |
| 37 /** |
39 /** |
| 38 * Compiles a shader from the given source code. |
40 * Compiles a shader from the given source code. |