First attempts of OpenGL

This commit is contained in:
Caesar2011
2016-08-31 16:18:49 +02:00
parent 2ddda6788a
commit 56830353c1
13 changed files with 785 additions and 8 deletions

View 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;
}