You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
581 B
24 lines
581 B
package com.mykaruga.models.wavefront.parser.mtl;
|
|
|
|
|
|
import com.mykaruga.models.wavefront.loader.LineParserFactory;
|
|
import com.mykaruga.models.wavefront.loader.RenderModel;
|
|
import com.mykaruga.models.wavefront.parser.CommentParser;
|
|
|
|
|
|
|
|
public class MtlLineParserFactory extends LineParserFactory {
|
|
|
|
|
|
|
|
public MtlLineParserFactory(RenderModel object) {
|
|
this.object = object;
|
|
parsers.put("newmtl", new MaterialParser());
|
|
parsers.put("Kd", new KdParser());
|
|
parsers.put("map_Kd", new KdMapParser(object));
|
|
parsers.put("#", new CommentParser());
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|