IT Reflexions

Archive for the ‘Code Samples’ Category

17 Jan, 2008

Bitmapped fonts

Posted by: Anca A. In: Code Samples| Windows Mobile

Due to the fact that OpenGL ES does not provide any kind of fonts, we need think a way to create the characters and display them efficiently.
In order to use fonts in OpenGL ES, we will use a widely used technique called: bitmapped fonts. That is, we store into a texture all characters of [...]

17 Jan, 2008

Texture Loader

Posted by: Anca A. In: Code Samples| Windows Mobile

In order to load a texture we will use the following function :
bool LoadTexture(const char *fileName, GLuint *id)
This function will receive a texture filename and a pointer to a texture identifier. This identifier will be initialized from inside the function (if proceed). It will return true if the texture was successfully loaded, otherwise it will [...]

Tags:

17 Jan, 2008

OBJ File Loader for OpenGL

Posted by: Anca A. In: Code Samples| Windows Mobile

In the followings a simple Obj File Loader using OpenGL ES will be described. For that, I used a structure to describe the mesh object:typedef struct _ObjMesh { ObjVertex *m_aVertexArray; ObjNormal *m_aNormalArray; ObjTexCoord *m_aTexCoordArray; ObjFace *m_aFaces;
unsigned long int *m_aIndices; unsigned long int m_iNumberOfVertices,
[...]

17 Jan, 2008

OBJ File Format & OBJ File Loader

Posted by: Anca A. In: Code Samples| Windows Mobile

The OBJ file format is a text file format, which means you can edit OBJ files in a text editor if you are hard-core. Unfortunately, the original specification didn’t seem to state what the end of line character should be, so some tools use carriage-returns and some use linefeeds. You may have to convert the [...]


About me

Client-focused software engineer with high intellectual mobility and experience in international teams.

Some of my interests are open innovation, design patterns, networking, personal branding, blogging and study of foreign languages.

Enjoy your visit and don’t hesitate to leave me a feedback!