wip args
This commit is contained in:
+6
-5
@@ -2,15 +2,16 @@
|
||||
#include "bmp.h"
|
||||
#include <string.h>
|
||||
|
||||
#define WIDTH 256
|
||||
#define HEIGHT 256
|
||||
#define COLOR_DEPTH 3
|
||||
|
||||
parameters global_params = EMPTY_PARAMS;
|
||||
|
||||
void generate_line(unsigned long y, char *data_buffer) {
|
||||
memset(data_buffer, y, WIDTH * COLOR_DEPTH);
|
||||
memset(data_buffer, y, global_params.width * COLOR_DEPTH);
|
||||
}
|
||||
|
||||
void generate(parameters params) {
|
||||
// TODO
|
||||
bmp_generate(WIDTH, HEIGHT, COLOR_DEPTH, "test.bmp", generate_line);
|
||||
global_params = params;
|
||||
bmp_generate(params.width, params.height, COLOR_DEPTH, params.file_path,
|
||||
generate_line);
|
||||
}
|
||||
Reference in New Issue
Block a user