mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-22 13:53:02 +05:30
Addressed warnings for texture module
This commit is contained in:
parent
ed2ee7bf71
commit
dd5af2004d
@ -39,51 +39,32 @@ struct TextureBatch {
|
||||
#pragma pack(pop)
|
||||
|
||||
typedef struct {
|
||||
// input: pointer to struct
|
||||
void (* const printheader) (struct TexturePack*);
|
||||
|
||||
// input: pointer to struct
|
||||
void (* const printbatchdesc)(struct TextureBatchDescriptor*);
|
||||
|
||||
// input: pointer of pointer to struct, order, file data, file size
|
||||
// ** = 'pass by reference' of a pointer to struct
|
||||
bool (* const getbatchdesc) (struct TextureBatchDescriptor**,
|
||||
unsigned int,
|
||||
const char *,
|
||||
unsigned int);
|
||||
|
||||
// input: pointer of pointer to struct, order, file data, file size
|
||||
// ** = 'pass by reference' of a pointer to struct
|
||||
bool (* const getbatch) (struct TextureBatch**,
|
||||
unsigned int,
|
||||
const char*,
|
||||
unsigned int);
|
||||
bool (* const gettextures) (struct Texture*,
|
||||
|
||||
// input: pointer to struct, order, file data, file size
|
||||
bool (* const gettextures) (struct Texture*,
|
||||
unsigned int,
|
||||
const char*,
|
||||
const unsigned int);
|
||||
} fn_devil1tex;
|
||||
extern fn_devil1tex const DEVIL1TEX;
|
||||
|
||||
// -------------------------------------------------------+
|
||||
// Functions
|
||||
// -------------------------------------------------------+
|
||||
|
||||
// Print Texture Pack Header.
|
||||
static void printtph(struct TexturePack*);
|
||||
|
||||
// Print Texture Batch Descriptor.
|
||||
static void printtbd(struct TextureBatchDescriptor*);
|
||||
|
||||
// Get Texture Batch Descriptor.
|
||||
// ** = 'pass by reference' of a pointer to struct
|
||||
static bool gettexdescriptor(struct TextureBatchDescriptor**,
|
||||
unsigned int,
|
||||
const char *,
|
||||
unsigned int);
|
||||
|
||||
// Get Texture Batch.
|
||||
// ** = 'pass by reference' of a pointer to struct
|
||||
static bool gettexbatch(struct TextureBatch**,
|
||||
unsigned int,
|
||||
const char*,
|
||||
unsigned int);
|
||||
|
||||
// Unpack Texture Batch
|
||||
static bool unpacktexbatch(struct Texture*,
|
||||
unsigned int,
|
||||
const char*,
|
||||
const unsigned int);
|
||||
|
||||
#endif
|
||||
|
@ -2,6 +2,32 @@
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
// Print Texture Pack Header.
|
||||
static void printtph(struct TexturePack*);
|
||||
|
||||
// Print Texture Batch Descriptor.
|
||||
static void printtbd(struct TextureBatchDescriptor*);
|
||||
|
||||
// Get Texture Batch Descriptor.
|
||||
|
||||
static bool gettexdescriptor(struct TextureBatchDescriptor**,
|
||||
unsigned int,
|
||||
const char *,
|
||||
unsigned int);
|
||||
|
||||
// Get Texture Batch.
|
||||
|
||||
static bool gettexbatch(struct TextureBatch**,
|
||||
unsigned int,
|
||||
const char*,
|
||||
unsigned int);
|
||||
|
||||
// Unpack Texture Batch
|
||||
static bool unpacktexbatch(struct Texture*,
|
||||
unsigned int,
|
||||
const char*,
|
||||
const unsigned int);
|
||||
|
||||
fn_devil1tex const DEVIL1TEX = {printtph,
|
||||
printtbd,
|
||||
gettexdescriptor,
|
||||
|
Loading…
Reference in New Issue
Block a user