001/**
002 * Copyright (c) 2008-2014 Ardor Labs, Inc.
003 *
004 * This file is part of Ardor3D.
005 *
006 * Ardor3D is free software: you can redistribute it and/or modify it 
007 * under the terms of its license which may be found in the accompanying
008 * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
009 */
010
011package com.ardor3d.extension.model.md2;
012
013import com.ardor3d.math.Vector3;
014import com.ardor3d.math.type.ReadOnlyVector3;
015
016final class Md2Frame {
017
018    /** frame name */
019    String name; // char [16]
020
021    /** scale factor */
022    final Vector3 scale = new Vector3(1, 1, 1);
023
024    /** translation vector */
025    final Vector3 translate = new Vector3();
026
027    /** vertex data */
028    byte[] vertData;
029
030    Md2Frame(final byte[] vertData, final String name, final ReadOnlyVector3 scale, final ReadOnlyVector3 translate) {
031        this.vertData = vertData;
032        this.scale.set(scale);
033        this.translate.set(translate);
034        this.name = name;
035    }
036}