Browse Source

Started working on spec

master
dirkson 1 year ago
parent
commit
4a4f0caf30
2 changed files with 21 additions and 6 deletions
  1. +14
    -2
      include/scrumblevox.h
  2. +7
    -4
      src/scrumblevox.c

+ 14
- 2
include/scrumblevox.h View File

@ -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***


+ 7
- 4
src/scrumblevox.c View File

@ -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