First attempts of OpenGL
This commit is contained in:
@@ -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