Package org.sunflow.core.parser
Class SCParser
java.lang.Object
org.sunflow.core.parser.SCParser
- All Implemented Interfaces:
SceneParser
This class provides a static method for loading files in the Sunflow scene
file format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
parse
(String filename, SunflowAPIInterface api) Parse the specified file to create a scene description into the providedSunflowAPI
object.
-
Constructor Details
-
SCParser
public SCParser()
-
-
Method Details
-
parse
Description copied from interface:SceneParser
Parse the specified file to create a scene description into the providedSunflowAPI
object.- Specified by:
parse
in interfaceSceneParser
- Parameters:
filename
- filename to parseapi
- scene to parse the file into- Returns:
true
upon sucess, orfalse
if errors have occured.
-