part: implement some functions (windows & display)

part:
- remove mlx3ds_3dskey.h, instead use hid.h
- add definitions of:
  - mlx_init()
  - mlx_new_window()
  - mlx_clear_window()
  - mlx_destroy_window()
  - mlx_pixel_put()
  - mlx_new_image()
  - mlx_get_data_addr()
  - mlx_put_image_to_window()
  - mlx_destroy_image()

dev:
- Makefile: add rule check_headers
- Makefile: add variable FLAGS
    (call 'make rule FLAGS=flags'
	to add flags to compilation)
- add /dev/norm.sh: nicer norminette
- add tester in main(), and related utilsconsole.*

docs:
- make clear mlx_get_data_addr() docs
This commit is contained in:
Zy 2024-10-06 16:24:31 +02:00
parent c7d0dba4fd
commit 13b93106ee
19 changed files with 766 additions and 141 deletions

19
dev/norm.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
# Use the norminette but without all these rules that make coding harder.
norminette | grep -v \
"INVALID_HEADER
VAR_DECL_START_FUNC
EMPTY_LINE_FUNCTION
TOO_MANY_ARGS
TOO_MANY_FUNCS
TOO_MANY_LINES
PREPROC_CONSTANT
MACRO_FUNC_FORBIDDEN
GLOBAL_VAR_DETECTED
WRONG_SCOPE_COMMENT
MULT_DECL_LINE
GOTO_FBIDDEN
LABEL_FBIDDEN
TERNARY_FBIDDEN"