Removed libisland files.
This commit is contained in:
2
Makefile
2
Makefile
@@ -4,7 +4,7 @@ OBJECTS = obj/main.o obj/game_state.o obj/in_game.o obj/map.o
|
||||
TARGET = bin/cyjam
|
||||
CFLAGS = -Wall -I./include -std=c99
|
||||
LDFLAGS = -L./lib
|
||||
LDLIBS = -lm -lisland -lfov -lncursesw
|
||||
LDLIBS = -lm -lfov -lncursesw
|
||||
|
||||
all: CFLAGS += -O3
|
||||
all: $(TARGET)
|
||||
|
@@ -1,63 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2014, Miguel Angel Astor Romero. All rights reserved.
|
||||
* See the file LICENSE for more details.
|
||||
*/
|
||||
|
||||
#ifndef ISLAND_H
|
||||
#define ISLAND_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum TERRAIN_TYPE { DEEP_WATER,
|
||||
SHALLOW_WATER,
|
||||
SAND,
|
||||
GRASS,
|
||||
FOREST,
|
||||
HILL,
|
||||
MOUNTAIN
|
||||
} terrain_t;
|
||||
|
||||
/**
|
||||
* Generate a diamond-square fractal map.
|
||||
*/
|
||||
extern void ds ( float ***, const unsigned int );
|
||||
|
||||
/**
|
||||
* Generate a mask using particle deposition.
|
||||
*/
|
||||
extern void island ( int ***, unsigned int );
|
||||
|
||||
/**
|
||||
* Normalize a float matrix between 0 and 1.
|
||||
*/
|
||||
extern void norm ( float ***, unsigned int );
|
||||
|
||||
/**
|
||||
* Normalize an int matrix between 0 and 255.
|
||||
*/
|
||||
extern void normInt ( int ***, unsigned int );
|
||||
|
||||
/**
|
||||
* Perform a 3x3 average blur.
|
||||
*/
|
||||
extern void smooth ( int ***, unsigned int );
|
||||
|
||||
/**
|
||||
* Multiply the diamond square map with the island mask.
|
||||
* Both matrices must have been normalized before.
|
||||
*/
|
||||
extern void mult ( float ***, int ***, unsigned int );
|
||||
|
||||
/**
|
||||
* Given a sample from a heightmap, return the terrain
|
||||
* type that correspond it.
|
||||
*/
|
||||
terrain_t terrainType( int );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
BIN
lib/libisland.a
BIN
lib/libisland.a
Binary file not shown.
Reference in New Issue
Block a user