3 Commits
trimap ... mac

Author SHA1 Message Date
Leander
9afb9191ff New profile for mac created 2016-09-09 10:07:37 +02:00
Leander
83a9f7df12 Forgot to commit 2016-09-08 11:47:48 +02:00
Leander
ef55f75b33 Finally compiling on mac 2016-09-08 11:40:16 +02:00
17 changed files with 535 additions and 223 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 768 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 876 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,56 @@
class Libiconv < Formula
desc "Conversion library"
homepage "https://www.gnu.org/software/libiconv/"
url "https://ftpmirror.gnu.org/libiconv/libiconv-1.14.tar.gz"
mirror "https://ftp.gnu.org/gnu/libiconv/libiconv-1.14.tar.gz"
sha256 "72b24ded17d687193c3366d0ebe7cde1e6b18f0df8c55438ac95be39e8a30613"
bottle do
sha256 "64d8a9383ba42ba3e41422bb8548ebc8f296f67fdda6e6d6a324f990b03c6db0" => :el_capitan
sha256 "a0d9ff36269bc908fde4a039d2083152202055a2e053b6582ad2c9063c85ebc2" => :yosemite
sha256 "456a816a94427c963fa3cb90257830aa33268f22443cf5a8a4cf1be3e3ed3bb9" => :mavericks
end
keg_only :provided_by_osx
option :universal
patch do
url "https://raw.githubusercontent.com/Homebrew/patches/9be2793af/libiconv/patch-Makefile.devel"
sha256 "ad9b6da1a82fc4de27d6f7086a3382993a0b16153bc8e8a23d7b5f9334ca0a42"
end
patch do
url "https://raw.githubusercontent.com/Homebrew/patches/9be2793af/libiconv/patch-utf8mac.diff"
sha256 "e8128732f22f63b5c656659786d2cf76f1450008f36bcf541285268c66cabeab"
end
patch :DATA
def install
ENV.universal_binary if build.universal?
ENV.j1
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-extra-encodings"
system "make", "-f", "Makefile.devel", "CFLAGS=#{ENV.cflags}", "CC=#{ENV.cc}"
system "make", "install"
end
end
__END__
diff --git a/lib/flags.h b/lib/flags.h
index d7cda21..4cabcac 100644
--- a/lib/flags.h
+++ b/lib/flags.h
@@ -14,6 +14,7 @@
#define ei_ascii_oflags (0)
#define ei_utf8_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
+#define ei_utf8mac_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
#define ei_ucs2_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
#define ei_ucs2be_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
#define ei_ucs2le_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)

View File

@@ -44,8 +44,8 @@ GLuint LoadTexture(char *filename,int *textw,int *texth) {
// this reads from the sdl surface and puts it into an opengl texture // this reads from the sdl surface and puts it into an opengl texture
glTexImage2D(GL_TEXTURE_2D, 0, mode, surface->w, surface->h, 0, mode, GL_UNSIGNED_BYTE, surface->pixels); glTexImage2D(GL_TEXTURE_2D, 0, mode, surface->w, surface->h, 0, mode, GL_UNSIGNED_BYTE, surface->pixels);
// these affect how this texture is drawn later on...glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); // these affect how this texture is drawn later on...glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
// clean up // clean up
@@ -67,7 +67,7 @@ void DrawTexture(int x, int y, GLuint textureid,int textw,int texth) {
glTexCoord2d(1.0,1.0); glVertex2f(1, 1); glTexCoord2d(1.0,1.0); glVertex2f(1, 1);
glTexCoord2d(0.0,1.0); glVertex2f(-1, 1); glTexCoord2d(0.0,1.0); glVertex2f(-1, 1);
glEnd(); glEnd();
glDisable(GL_TEXTURE_2D); glDisable(GL_TEXTURE_2D );
} }
GLuint LoadShaders(const char * vertex_file_path,const char * fragment_file_path){ GLuint LoadShaders(const char * vertex_file_path,const char * fragment_file_path){
@@ -169,6 +169,10 @@ GLuint LoadShaders(const char * vertex_file_path,const char * fragment_file_path
int main(int argc, char* args[]) { int main(int argc, char* args[]) {
GLFWwindow* window; GLFWwindow* window;
GLuint tex_jpe; GLuint tex_jpe;
GLuint tex_jpg;
GLuint tex_gif;
GLuint tex_png;
GLuint tex_bmp;
int textw, texth; int textw, texth;
int timer = 0; int timer = 0;
@@ -209,62 +213,13 @@ int main(int argc, char* args[]) {
} }
// INIT // INIT
tex_jpe=LoadTexture("../img/tests/test.jpeg",&textw,&texth);
GLuint VertexArrayID; tex_jpg=LoadTexture("../img/tests/test.jpg",&textw,&texth);
glGenVertexArrays(1, &VertexArrayID); tex_png=LoadTexture("../img/tests/test.png",&textw,&texth);
glBindVertexArray(VertexArrayID); tex_bmp=LoadTexture("../img/tests/test.bmp",&textw,&texth);
// An array of 3 vectors which represents 3 vertices
static const GLfloat g_vertex_buffer_data[] = {
-1.0f, -1.0f, 0.0f, // (bottom - left ) TRIANGLE 1
1.0f, -1.0f, 0.0f, // (bottom - right)
-1.0f, 1.0f, 0.0f, // (top - left )
1.0f, 1.0f, 0.0f, // (top - right) TRIANGLE 2
1.0f, -1.0f, 0.0f, // (bottom - right)
-1.0f, 1.0f, 0.0f, // (top - left )
};
// One color for each vertex. They were generated randomly.
static const GLfloat g_uv_buffer_data[] = {
0.0f, 1.0f-0.0f, // (bottom - left ) TRIANGLE 1
1.0f, 1.0f-0.0f, // (bottom - right)
0.0f, 1.0f-1.0f, // (top - left )
1.0f, 1.0f-1.0f, // (top - right) TRIANGLE 2
1.0f, 1.0f-0.0f, // (bottom - right)
0.0f, 1.0f-1.0f, // (top - left )
};
// Identify our vertex buffer
GLuint vertexbuffer;
glGenBuffers(1, &vertexbuffer);
glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(g_vertex_buffer_data), g_vertex_buffer_data, GL_STATIC_DRAW);
// Identify our color buffer
GLuint colorbuffer;
glGenBuffers(1, &colorbuffer);
glBindBuffer(GL_ARRAY_BUFFER, colorbuffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(g_uv_buffer_data), g_uv_buffer_data, GL_STATIC_DRAW);
tex_jpe=LoadTexture("../img/tests/test.png",&textw,&texth);
GLuint programID = LoadShaders("trimap.vertexshader", "trimap.fragmentshader"); GLuint programID = LoadShaders("trimap.vertexshader", "trimap.fragmentshader");
GLint textureLocation = glGetUniformLocation(programID, "myTextureSampler"); printf("%d", programID);
GLint widthLocation = glGetUniformLocation(programID, "pixWidth");
GLint heigthLocation = glGetUniformLocation(programID, "pixHeight");
printf("Shader program ID: %d\n", programID);
printf("textureLocation: %d\n", textureLocation);
printf("widthLocation: %d\n", widthLocation);
printf("heigthLocation: %d\n", heigthLocation);
printf("Width: %f\n", 1.0f/textw);
printf("Height: %f\n", 1.0f/texth);
// INIT END // INIT END
/* Loop until the user closes the window */ /* Loop until the user closes the window */
@@ -274,39 +229,17 @@ int main(int argc, char* args[]) {
timer = 0; timer = 0;
/* Render here */ /* Render here */
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glUseProgram(programID); glUseProgram(programID);
glUniform1f(widthLocation, 1.0f/textw);
glUniform1f(heigthLocation, 1.0f/texth);
// 1rst attribute buffer : vertices
glEnableVertexAttribArray(0);
glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer);
glVertexAttribPointer(
0, // attribute 0. No particular reason for 0, but must match the layout in the shader.
3, // size
GL_FLOAT, // type
GL_FALSE, // normalized?
0, // stride
(void*)0 // array buffer offset
);
// 2nd attribute buffer : colors
glEnableVertexAttribArray(1);
glBindBuffer(GL_ARRAY_BUFFER, colorbuffer);
glVertexAttribPointer(
1, // attribute. No particular reason for 1, but must match the layout in the shader.
2, // size
GL_FLOAT, // type
GL_FALSE, // normalized?
0, // stride
(void*)0 // array buffer offset
);
// Draw the triangle !
glDrawArrays(GL_TRIANGLES, 0, 2*3); // 2*3 indices starting at 0 -> 2 triangles -> 1 square
glDisableVertexAttribArray(0);
// RENDER
if (timer<200)
DrawTexture(50,50,tex_jpe,textw,texth);
else if (timer<400)
DrawTexture(50,50,tex_jpg,textw,texth);
else if (timer<600)
DrawTexture(50,50,tex_png,textw,texth);
else
DrawTexture(50,50,tex_bmp,textw,texth);
// RENDER END // RENDER END
/* Swap front and back buffers */ /* Swap front and back buffers */

View File

@@ -27,6 +27,33 @@
<Add option="-s" /> <Add option="-s" />
</Linker> </Linker>
</Target> </Target>
<Target title="Debug Mac">
<Option platforms="Mac;" />
<Option output="bin/Debug/opengl-test-two" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
<Linker>
<Add option="-framework AudioUnit" />
<Add option="-framework Carbon" />
<Add option="-framework Cocoa" />
<Add option="-framework CoreAudio" />
<Add option="-framework CoreFoundation" />
<Add option="-framework CoreVideo" />
<Add option="-framework ForceFeedback" />
<Add option="-framework IOKit" />
<Add option="-framework OpenGL" />
<Add library="GLEW" />
<Add library="glfw3" />
<Add library="iconv" />
<Add library="SDL2main" />
<Add library="SDL2" />
<Add library="SDL2_image" />
</Linker>
</Target>
</Build> </Build>
<Compiler> <Compiler>
<Add option="-Wall" /> <Add option="-Wall" />
@@ -34,11 +61,18 @@
<Add directory="include" /> <Add directory="include" />
</Compiler> </Compiler>
<Linker> <Linker>
<Add library="glew32" /> <Add option="-framework AudioUnit" />
<Add option="-framework Carbon" />
<Add option="-framework Cocoa" />
<Add option="-framework CoreAudio" />
<Add option="-framework CoreFoundation" />
<Add option="-framework CoreVideo" />
<Add option="-framework ForceFeedback" />
<Add option="-framework IOKit" />
<Add option="-framework OpenGL" />
<Add library="GLEW" />
<Add library="glfw3" /> <Add library="glfw3" />
<Add library="gdi32" /> <Add library="iconv" />
<Add library="opengl32" />
<Add library="mingw32" />
<Add library="SDL2main" /> <Add library="SDL2main" />
<Add library="SDL2" /> <Add library="SDL2" />
<Add library="SDL2_image" /> <Add library="SDL2_image" />

View File

@@ -2,7 +2,7 @@
1385320478 source:d:\owncloud\documents\programmierung\cpp\opengl-test-two\main.cpp 1385320478 source:d:\owncloud\documents\programmierung\cpp\opengl-test-two\main.cpp
<iostream> <iostream>
1473106263 source:d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\main.cpp 1473007864 source:d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\main.cpp
<GL/glew.h> <GL/glew.h>
<GLFW/glfw3.h> <GLFW/glfw3.h>
<SDL2/SDL.h> <SDL2/SDL.h>
@@ -13,7 +13,7 @@
<vector> <vector>
<stdexcept> <stdexcept>
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\glfw\glfw3.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\glfw\glfw3.h
<stddef.h> <stddef.h>
<stdint.h> <stdint.h>
<OpenGL/gl3.h> <OpenGL/gl3.h>
@@ -34,7 +34,7 @@
<GL/glext.h> <GL/glext.h>
<GL/glu.h> <GL/glu.h>
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl.h
"SDL_main.h" "SDL_main.h"
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_assert.h" "SDL_assert.h"
@@ -65,12 +65,12 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_main.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_main.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_stdinc.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_stdinc.h
"SDL_config.h" "SDL_config.h"
<sys/types.h> <sys/types.h>
<stdio.h> <stdio.h>
@@ -99,34 +99,34 @@
<stdlib.h> <stdlib.h>
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_config.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_config.h
"SDL_platform.h" "SDL_platform.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_platform.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_platform.h
"AvailabilityMacros.h" "AvailabilityMacros.h"
"TargetConditionals.h" "TargetConditionals.h"
<winapifamily.h> <winapifamily.h>
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\begin_code.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\begin_code.h
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\close_code.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\close_code.h
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_assert.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_assert.h
"SDL_config.h" "SDL_config.h"
"begin_code.h" "begin_code.h"
<signal.h> <signal.h>
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_atomic.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_atomic.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_platform.h" "SDL_platform.h"
"begin_code.h" "begin_code.h"
<mbarrier.h> <mbarrier.h>
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_audio.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_audio.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_endian.h" "SDL_endian.h"
@@ -136,24 +136,24 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_error.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_error.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_endian.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_endian.h
"SDL_stdinc.h" "SDL_stdinc.h"
<endian.h> <endian.h>
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_mutex.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_mutex.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_thread.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_thread.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_atomic.h" "SDL_atomic.h"
@@ -162,18 +162,18 @@
<process.h> <process.h>
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_rwops.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_rwops.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_clipboard.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_clipboard.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_cpuinfo.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_cpuinfo.h
"SDL_stdinc.h" "SDL_stdinc.h"
<intrin.h> <intrin.h>
<intrin.h> <intrin.h>
@@ -185,7 +185,7 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_events.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_events.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_video.h" "SDL_video.h"
@@ -199,7 +199,7 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_video.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_video.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_pixels.h" "SDL_pixels.h"
"SDL_rect.h" "SDL_rect.h"
@@ -207,12 +207,12 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_pixels.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_pixels.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_rect.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_rect.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_pixels.h" "SDL_pixels.h"
@@ -220,7 +220,7 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_surface.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_surface.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_pixels.h" "SDL_pixels.h"
"SDL_rect.h" "SDL_rect.h"
@@ -229,11 +229,11 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_blendmode.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_blendmode.h
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_keyboard.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_keyboard.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_keycode.h" "SDL_keycode.h"
@@ -241,27 +241,27 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_keycode.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_keycode.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_scancode.h" "SDL_scancode.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_scancode.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_scancode.h
"SDL_stdinc.h" "SDL_stdinc.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_mouse.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_mouse.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_video.h" "SDL_video.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_joystick.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_joystick.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_gamecontroller.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_gamecontroller.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_rwops.h" "SDL_rwops.h"
@@ -269,11 +269,11 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_quit.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_quit.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_gesture.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_gesture.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_video.h" "SDL_video.h"
@@ -281,60 +281,60 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_touch.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_touch.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_video.h" "SDL_video.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_filesystem.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_filesystem.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_haptic.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_haptic.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"SDL_joystick.h" "SDL_joystick.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_hints.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_hints.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_loadso.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_loadso.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_log.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_log.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_messagebox.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_messagebox.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_video.h" "SDL_video.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_power.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_power.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_render.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_render.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_rect.h" "SDL_rect.h"
"SDL_video.h" "SDL_video.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_system.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_system.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_keyboard.h" "SDL_keyboard.h"
"SDL_render.h" "SDL_render.h"
@@ -342,24 +342,24 @@
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_timer.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_timer.h
"SDL_stdinc.h" "SDL_stdinc.h"
"SDL_error.h" "SDL_error.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_version.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_version.h
"SDL_stdinc.h" "SDL_stdinc.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_image.h 1472737758 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\sdl2\sdl_image.h
"SDL.h" "SDL.h"
"SDL_version.h" "SDL_version.h"
"begin_code.h" "begin_code.h"
"close_code.h" "close_code.h"
1473011642 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\gl\glew.h 1472927170 d:\owncloud\documents\programmierung\cpp\imanox-chroma-matting\opengl-test-two\include\gl\glew.h
<stddef.h> <stddef.h>
<inttypes.h> <inttypes.h>
<stdint.h> <stdint.h>
@@ -368,3 +368,369 @@
<OpenGL/glu.h> <OpenGL/glu.h>
<GL/glu.h> <GL/glu.h>
1473323187 source:/Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/main.cpp
<GL/glew.h>
<GLFW/glfw3.h>
<SDL2/SDL.h>
<SDL2/SDL_image.h>
<stdio.h>
<iostream>
<fstream>
<vector>
<stdexcept>
1473057771 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/GL/glew.h
<stddef.h>
<inttypes.h>
<stdint.h>
<inttypes.h>
<Availability.h>
<OpenGL/glu.h>
<GL/glu.h>
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/GLFW/glfw3.h
<stddef.h>
<stdint.h>
<OpenGL/gl3.h>
<OpenGL/gl3ext.h>
<OpenGL/gl.h>
<OpenGL/glu.h>
<GL/glcorearb.h>
<GLES/gl.h>
<GLES/glext.h>
<GLES2/gl2.h>
<GLES2/gl2ext.h>
<GLES3/gl3.h>
<GLES2/gl2ext.h>
<GLES3/gl31.h>
<GLES2/gl2ext.h>
<vulkan/vulkan.h>
<GL/gl.h>
<GL/glext.h>
<GL/glu.h>
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL.h
"SDL_main.h"
"SDL_stdinc.h"
"SDL_assert.h"
"SDL_atomic.h"
"SDL_audio.h"
"SDL_clipboard.h"
"SDL_cpuinfo.h"
"SDL_endian.h"
"SDL_error.h"
"SDL_events.h"
"SDL_filesystem.h"
"SDL_joystick.h"
"SDL_gamecontroller.h"
"SDL_haptic.h"
"SDL_hints.h"
"SDL_loadso.h"
"SDL_log.h"
"SDL_messagebox.h"
"SDL_mutex.h"
"SDL_power.h"
"SDL_render.h"
"SDL_rwops.h"
"SDL_system.h"
"SDL_thread.h"
"SDL_timer.h"
"SDL_version.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_main.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_stdinc.h
"SDL_config.h"
<sys/types.h>
<stdio.h>
<stdlib.h>
<stddef.h>
<stdarg.h>
<stdlib.h>
<malloc.h>
<stddef.h>
<stdarg.h>
<memory.h>
<string.h>
<strings.h>
<inttypes.h>
<stdint.h>
<ctype.h>
<math.h>
<float.h>
<iconv.h>
<sal.h>
"begin_code.h"
<alloca.h>
<malloc.h>
<malloc.h>
<malloc.h>
<stdlib.h>
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_config.h
"SDL_platform.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_platform.h
"AvailabilityMacros.h"
"TargetConditionals.h"
<winapifamily.h>
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/begin_code.h
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/close_code.h
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_assert.h
"SDL_config.h"
"begin_code.h"
<signal.h>
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_atomic.h
"SDL_stdinc.h"
"SDL_platform.h"
"begin_code.h"
<mbarrier.h>
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_audio.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_endian.h"
"SDL_mutex.h"
"SDL_thread.h"
"SDL_rwops.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_error.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_endian.h
"SDL_stdinc.h"
<endian.h>
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_mutex.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_thread.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_atomic.h"
"SDL_mutex.h"
"begin_code.h"
<process.h>
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_rwops.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_clipboard.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_cpuinfo.h
"SDL_stdinc.h"
<intrin.h>
<intrin.h>
<altivec.h>
<mmintrin.h>
<mm3dnow.h>
<xmmintrin.h>
<emmintrin.h>
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_events.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_video.h"
"SDL_keyboard.h"
"SDL_mouse.h"
"SDL_joystick.h"
"SDL_gamecontroller.h"
"SDL_quit.h"
"SDL_gesture.h"
"SDL_touch.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_video.h
"SDL_stdinc.h"
"SDL_pixels.h"
"SDL_rect.h"
"SDL_surface.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_pixels.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_rect.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_pixels.h"
"SDL_rwops.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_surface.h
"SDL_stdinc.h"
"SDL_pixels.h"
"SDL_rect.h"
"SDL_blendmode.h"
"SDL_rwops.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_blendmode.h
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_keyboard.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_keycode.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_keycode.h
"SDL_stdinc.h"
"SDL_scancode.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_scancode.h
"SDL_stdinc.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_mouse.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_joystick.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_gamecontroller.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_rwops.h"
"SDL_joystick.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_quit.h
"SDL_stdinc.h"
"SDL_error.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_gesture.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_video.h"
"SDL_touch.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_touch.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_filesystem.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_haptic.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_joystick.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_hints.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_loadso.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_log.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_messagebox.h
"SDL_stdinc.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_power.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_render.h
"SDL_stdinc.h"
"SDL_rect.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_system.h
"SDL_stdinc.h"
"SDL_keyboard.h"
"SDL_render.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_timer.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_version.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_image.h
"SDL.h"
"SDL_version.h"
"begin_code.h"
"close_code.h"

View File

@@ -0,0 +1,2 @@
glew32 -> GLEW

View File

@@ -1,78 +1,8 @@
#version 330 core #version 330 core
// Interpolated values from the vertex shaders out vec4 color;
in vec2 UV;
// Ouput data
out vec3 color;
// Values that stay constant for the whole mesh.
uniform sampler2D myTextureSampler;
//uniform float pixWidth;
//uniform float pixHeight;
int IS_BACKGROUND = 0;
int IS_UNDEFINED = 1;
int IS_FOREGROUND = 2;
int UNSET = -1;
vec3 getColor(vec2 uvCoord) {
return texture(myTextureSampler, uvCoord).rgb;
}
bool isBackground(vec3 c) {
// 49,206, 11
if (all( lessThanEqual(c, vec3(51.0f/255.0f, 208.0f/255.0f, 13.0f/255.0f))) &&
all(greaterThanEqual(c, vec3(47.0f/255.0f, 204.0f/255.0f, 9.0f/255.0f)))
) {
return true;
} else {
return false;
}
}
void main(){ void main(){
float pixWidth = 0.001174f; color = vec3(0.5,0,0);
float pixHeight = 0.002083f;
int status = UNSET;
float pw = pixWidth;
float ph = pixHeight;
// Output color = color of the texture at the specified UV
for(int w=-5;w<=5;w++){
for(int h=-5;h<=5;h++){
if (w+h==-10) { // first pixel
if (isBackground(getColor(UV+vec2(pixWidth*w,pixHeight*h)))) {
status = IS_BACKGROUND;
} else {
status = IS_FOREGROUND;
}
} else { // other pixels
if (isBackground(getColor(UV+vec2(pixWidth*w,pixHeight*h)))) {
if (status != IS_BACKGROUND) {
status = IS_UNDEFINED;
break;
}
} else {
if (status != IS_FOREGROUND) {
status = IS_UNDEFINED;
break;
}
}
}
}
}
if (status == IS_BACKGROUND) {
color = vec3(1.0f, 0.0f, 0.0f);
} else if (status == IS_FOREGROUND) {
color = vec3(0.0f, 1.0f, 0.0f);
} else {
color = vec3(0.0f, 0.0f, 1.0f);
}
} }

View File

@@ -1,17 +1,8 @@
#version 330 core #version 330 core
// Input vertex data, different for all executions of this shader.
layout(location = 0) in vec3 vertexPosition_modelspace; layout(location = 0) in vec3 vertexPosition_modelspace;
layout(location = 1) in vec2 vertexUV;
// Output data ; will be interpolated for each fragment.
out vec2 UV;
void main(){ void main(){
// Output position of the vertex, in clip space : MVP * position gl_Position.xyz = vertexPosition_modelspace;
gl_Position = vec4(vertexPosition_modelspace, 1); gl_Position.w = 1.0;
// UV of the vertex. No special space for this one.
UV = vertexUV;
} }