First attempts of OpenGL
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# depslib dependency file v1.0
|
||||
1472483353 source:c:\users\sebastian\documents\git-repos\imanox-chroma-matting\imanox-chroma-matting\main.cpp
|
||||
1472540761 source:c:\users\sebastian\documents\git-repos\imanox-chroma-matting\imanox-chroma-matting\main.cpp
|
||||
<iostream>
|
||||
<stdio.h>
|
||||
"C:\Program Files (x86)\GnuWin32\include\jpeglib.h"
|
||||
<jpeglib.h>
|
||||
|
||||
1116160468 c:\program files (x86)\gnuwin32\include\jpeglib.h
|
||||
"jconfig.h"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||
<CodeBlocks_layout_file>
|
||||
<ActiveTarget name="Debug" />
|
||||
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<File name="main.cpp" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="41" topLine="0" />
|
||||
<Cursor1 position="1986" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
</CodeBlocks_layout_file>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
int loadJpg(const char* Name) {
|
||||
int * loadJpg(const char* Name) {
|
||||
unsigned char a, r, g, b;
|
||||
int width, height;
|
||||
struct jpeg_decompress_struct cinfo;
|
||||
@@ -61,13 +61,19 @@ int loadJpg(const char* Name) {
|
||||
Height = height;
|
||||
Width = width;
|
||||
Depth = 32;*/
|
||||
int * pJetze = (int*)pTest;
|
||||
cout << width << endl;
|
||||
return pJetze;
|
||||
}
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
loadJpg("../img/foregrounds/1.jpeg");
|
||||
cout << "Hello world!" << endl;
|
||||
return 0;
|
||||
int * pJetze = loadJpg("../img/foregrounds/2.jpeg");
|
||||
cout << pJetze[0] << endl;
|
||||
cout << pJetze[1] << endl;
|
||||
cout << pJetze[2] << endl;
|
||||
cout << pJetze[3] << endl;
|
||||
cout << "Hello world!" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user