Browse Source

Started working on spec

master
dirkson 2 years ago
parent
commit
4a4f0caf30
  1. 16
      include/scrumblevox.h
  2. 11
      src/scrumblevox.c

16
include/scrumblevox.h

@ -10,8 +10,20 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// ***Include guards***
#pragma once //Speeds up compilation on platforms that support it
#ifndef LOB_INCLUDED
#define LOB_INCLUDED
#ifndef SCRUMBLEVOX_INCLUDED
#define SCRUMBLEVOX_INCLUDED
/*
typedef enum scrumblevox_format {
SCRUMBLEVOX_GOXEL,
SCRUMBLEVOX_MAGICA,
} scrumblevox_format;
*/
typedef enum scrumblevox_return {
SCRUMBLEVOX_FAILURE = 0,
SCRUMBLEVOX_SUCCESS = 1,
} scrumblevox_return;
// ***Include guards***

11
src/scrumblevox.c

@ -1,9 +1,12 @@
#include "scrumblevox.h"
int scrumblevox_new() {
return 0;
//Creates a new, blank object based on the requested size and a list of voxen materials
extern scrumblevox_return scrumblevox_new(unsigned short int size, unsigned char *toFilename) {
return SCRUMBLEVOX_FAILURE;
}
//Reads filenames, calls appropriate converters to/from
extern scrumblevox_return scrumblevox_convert(unsigned char *fromFilename, unsigned char *toFilename) {
return SCRUMBLEVOX_FAILURE;
}
Loading…
Cancel
Save