Package cc.plural.ecs.component.render

Source Code of cc.plural.ecs.component.render.RenderComponent

/**
* Copyright (C) 2012 J.W.Marsden <jmarsden@plural.cc>
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package cc.plural.ecs.component.render;

import cc.plural.ecs.engine.Component;
import cc.plural.math.Matrix4f;

public class RenderComponent extends Component {
   
    Matrix4f modelMatrix;

    public RenderComponent() {
        modelMatrix = new Matrix4f();
    }

    @Override
    public void update(float delta) {
        super.update(delta);
    }
   
//    @Override
//    public void render(Renderer renderer) {
//        if(gameObject != null) {
//            renderer.draw(gameObject);
//        }
//    }
}
TOP

Related Classes of cc.plural.ecs.component.render.RenderComponent

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.