bread man forgot to push
This commit is contained in:
parent
386680a66a
commit
4c0c7b5833
15 changed files with 248 additions and 4 deletions
23
eastern flames/scripts/model_load/model_load.gml
Normal file
23
eastern flames/scripts/model_load/model_load.gml
Normal 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;
|
||||
|
||||
}
|
12
eastern flames/scripts/model_load/model_load.yy
Normal file
12
eastern flames/scripts/model_load/model_load.yy
Normal 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",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue