libktx
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Functions
lib/checkheader.c File Reference

Function to verify a KTX file header. More...

#include <string.h>
#include "ktx.h"
#include "ktxint.h"

Functions

DECLARE_GL_FUNCPTRS
DECLARE_GL_EXTGLOBALS
KTX_error_code 
_ktxCheckHeader (KTX_header *header, KTX_texinfo *texinfo)
 Check a KTX file header.

Detailed Description

Function to verify a KTX file header.

Author:
Mark Callow, HI Corporation
Revision:
11853
Date:
2010-07-06 17:18:55 +0900 #

Function Documentation

DECLARE_GL_FUNCPTRS DECLARE_GL_EXTGLOBALS KTX_error_code _ktxCheckHeader ( KTX_header *  header,
KTX_texinfo *  texinfo 
)

Check a KTX file header.

As well as checking that the header identifies a KTX file, the function sanity checks the values and returns information about the texture in a KTX_texinfo structure.

Parameters:
headerpointer to the KTX header to check
texinfopointer to a KTX_texinfo structure in which to return information about the texture.
Author:
Georg Kolling, Imagination Technology
Mark Callow, HI Corporation