bread man forgot to push

This commit is contained in:
Anumania 2022-08-18 18:03:51 -07:00
parent 386680a66a
commit 4c0c7b5833
15 changed files with 248 additions and 4 deletions

View file

@ -0,0 +1,23 @@
///model_load(filepath, vformat)
/// @func model_load(filepath, vformat)
/// @desc Loads a mobel in via buffer. Returns -1 if the file isn't found, otherwise returns a vertex buffer ID
/// @arg filepath
/// @arg vformat
/// @return -1 on fail or a vbuffer ID
function model_load(filepath,vformat){
if(!file_exists(filepath))
{
show_debug_message("File not Found: " + string(filepath));
return -1;
}
//var buff = buffer_load(filepath);
//var vbuff = vertex_create_buffer_from_buffer(buff, vformat);
var vbuff = global.cache.load(filepath,vformat);
//buffer_delete(buff);
return vbuff;
}

View file

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "3d",
"path": "folders/Scripts/3d.yy",
},
"resourceVersion": "1.0",
"name": "model_load",
"tags": [],
"resourceType": "GMScript",
}