4coder/4ed_graphics_api.cpp

43 lines
928 B
C++
Raw Normal View History

/*
* Mr. 4th Dimention - Allen Webster
*
* 02.10.2019
*
* Graphics API definition program.
*
*/
// TOP
2019-10-03 23:00:31 +00:00
#include "4ed_api_definition_main.cpp"
function API_Definition*
define_api(Arena *arena){
API_Definition *api = begin_api(arena, "graphics");
{
API_Call *call = api_call(arena, api, "get_texture", "u32");
api_param(arena, call, "Vec3_i32", "dim");
api_param(arena, call, "Texture_Kind", "texture_kind");
}
{
API_Call *call = api_call(arena, api, "fill_texture", "b32");
api_param(arena, call, "Texture_Kind", "texture_kind");
api_param(arena, call, "u32", "texture");
api_param(arena, call, "Vec3_i32", "p");
api_param(arena, call, "Vec3_i32", "dim");
api_param(arena, call, "void*", "data");
}
return(api);
}
2019-10-08 01:11:40 +00:00
function Generated_Group
get_api_group(void){
return(GeneratedGroup_Core);
}
// BOTTOM