GLRenderData.java 1.48 KB
Newer Older
Gaëtan Renaudeau's avatar
WIP  
Gaëtan Renaudeau committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
package com.projectseptember.RNGL;

import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.util.List;
import java.util.Map;

public class GLRenderData {

    final GLShader shader;
    final Map<String, Integer> uniformsInteger;
    final Map<String, Float> uniformsFloat;
    final Map<String, IntBuffer> uniformsIntBuffer;
    final Map<String, FloatBuffer> uniformsFloatBuffer;
    final Map<String, GLTexture> textures;
    final Integer width;
    final Integer height;
    final Integer fboId;
    final List<GLRenderData> contextChildren;
    final List<GLRenderData> children;

    public GLRenderData(
            GLShader shader,
            Map<String, Integer> uniformsInteger,
            Map<String, Float> uniformsFloat,
            Map<String, IntBuffer> uniformsIntBuffer,
            Map<String, FloatBuffer> uniformsFloatBuffer,
            Map<String, GLTexture> textures,
            Integer width,
            Integer height,
            Integer fboId,
            List<GLRenderData> contextChildren,
            List<GLRenderData> children) {
        this.shader = shader;
        this.uniformsInteger = uniformsInteger;
        this.uniformsFloat = uniformsFloat;
        this.uniformsIntBuffer = uniformsIntBuffer;
        this.uniformsFloatBuffer = uniformsFloatBuffer;
        this.textures = textures;
        this.width = width;
        this.height = height;
        this.fboId = fboId;
        this.contextChildren = contextChildren;
        this.children = children;
    }
}