Parse multiple group name. Not yet finished fully though.

This commit is contained in:
Syoyo Fujita
2013-06-29 13:00:22 +09:00
parent 911187d9c3
commit 5284dcb19f
3 changed files with 57 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
//
// Copyright 2012, Syoyo Fujita.
// Copyright 2012-2013, Syoyo Fujita.
//
// Licensed under 2-clause BSD liecense.
//
@@ -49,9 +49,11 @@ typedef struct
/// 'shapes' will be filled with parsed shape data
/// The function returns error string.
/// Returns empty string when loading .obj success.
/// 'mtl_basepath' is optional, and used for base path for .mtl file.
std::string LoadObj(
std::vector<shape_t>& shapes, // [output]
const char* filename);
const char* filename,
const char* mtl_basepath = NULL);
};