The Wayback Machine - https://web.archive.org/web/20201120130630/https://github.com/devint1/HelloCube
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Hello Cube

This is a simple Android application I wrote to learn the basics of OpenGL ES 2.0. It renders a spinning cube with both texture and normal maps in a perspective projection.

Screenshot

Texture Format

I developed a simple, custom texture format that is simple to load via OpenGL. It is as follows:

typedef struct _tex_hdr {
	uint32_t width, height;
	uint32_t format, type;
} tex_hdr;

typedef struct _tex {
	tex_hdr header;
	void *data;
} tex;

data is the image bitmap data, which is in the format specified in the header. E.g., RGBA, float. I use a simple conversion utility (png2tex) to convert PNG files to this format.

About

Messing around with OpenGL ES 2.0 on Android

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.