当前位置: 首页>>代码示例>>Java>>正文


Java GLRegion.create方法代码示例

本文整理汇总了Java中com.jogamp.graph.curve.opengl.GLRegion.create方法的典型用法代码示例。如果您正苦于以下问题:Java GLRegion.create方法的具体用法?Java GLRegion.create怎么用?Java GLRegion.create使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.jogamp.graph.curve.opengl.GLRegion的用法示例。


在下文中一共展示了GLRegion.create方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: GPUTextRendererListenerBase01

import com.jogamp.graph.curve.opengl.GLRegion; //导入方法依赖的package包/类
public GPUTextRendererListenerBase01(final RenderState rs, final int renderModes, final int sampleCount, final boolean blending, final boolean debug, final boolean trace) {
    // NOTE_ALPHA_BLENDING: We use alpha-blending
    super(RegionRenderer.create(rs, blending ? RegionRenderer.defaultBlendEnable : null,
                                blending ? RegionRenderer.defaultBlendDisable : null),
                                renderModes, debug, trace);
    rs.setHintMask(RenderState.BITHINT_GLOBAL_DEPTH_TEST_ENABLED);
    this.textRegionUtil = new TextRegionUtil(renderModes);
    this.regionFPS = GLRegion.create(renderModes, null);
    this.regionBottom = GLRegion.create(renderModes, null);
    try {
        this.font = FontFactory.get(fontSet).getDefault();
        dumpFontNames();

        this.fontName = font.toString();
    } catch (final IOException ioe) {
        System.err.println("Caught: "+ioe.getMessage());
        ioe.printStackTrace();
    }
    setMatrix(0, 0, 0, 0f, sampleCount);
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:21,代码来源:GPUTextRendererListenerBase01.java

示例2: createTestOutline

import com.jogamp.graph.curve.opengl.GLRegion; //导入方法依赖的package包/类
private void createTestOutline(){
    float offset = 0;
    outlineShape = new OutlineShape(getRenderer().getRenderState().getVertexFactory());
    outlineShape.addVertex(0.0f,-10.0f, true);
    outlineShape.addVertex(15.0f,-10.0f, true);
    outlineShape.addVertex(10.0f,5.0f, false);
    outlineShape.addVertex(15.0f,10.0f, true);
    outlineShape.addVertex(6.0f,15.0f, false);
    outlineShape.addVertex(5.0f,8.0f, false);
    outlineShape.addVertex(0.0f,10.0f,true);
    outlineShape.closeLastOutline(true);
    outlineShape.addEmptyOutline();
    outlineShape.addVertex(5.0f,-5.0f,true);
    outlineShape.addVertex(10.0f,-5.0f, false);
    outlineShape.addVertex(10.0f,0.0f, true);
    outlineShape.addVertex(5.0f,0.0f, false);
    outlineShape.closeLastOutline(true);

    /** Same shape as above but without any off-curve vertices */
    offset = 30;
    outlineShape.addEmptyOutline();
    outlineShape.addVertex(offset+0.0f,-10.0f, true);
    outlineShape.addVertex(offset+17.0f,-10.0f, true);
    outlineShape.addVertex(offset+11.0f,5.0f, true);
    outlineShape.addVertex(offset+16.0f,10.0f, true);
    outlineShape.addVertex(offset+7.0f,15.0f, true);
    outlineShape.addVertex(offset+6.0f,8.0f, true);
    outlineShape.addVertex(offset+0.0f,10.0f, true);
    outlineShape.closeLastOutline(true);
    outlineShape.addEmptyOutline();
    outlineShape.addVertex(offset+5.0f,0.0f, true);
    outlineShape.addVertex(offset+5.0f,-5.0f, true);
    outlineShape.addVertex(offset+10.0f,-5.0f, true);
    outlineShape.addVertex(offset+10.0f,0.0f, true);
    outlineShape.closeLastOutline(true);

    region = GLRegion.create(getRenderModes(), null);
    region.addOutlineShape(outlineShape, null, region.hasColorChannel() ? getRenderer().getRenderState().getColorStatic(new float[4]) : null);
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:40,代码来源:GPURegionGLListener01.java

示例3: createTestOutline

import com.jogamp.graph.curve.opengl.GLRegion; //导入方法依赖的package包/类
private void createTestOutline(){
    float offset = 0;
    OutlineShape shape = new OutlineShape(getRenderer().getRenderState().getVertexFactory());
    outlineShapes.add(shape);
    shape.addVertex(0.0f,-10.0f,true);
    shape.addVertex(15.0f,-10.0f, true);
    shape.addVertex(10.0f,5.0f, false);
    shape.addVertex(15.0f,10.0f, true);
    shape.addVertex(6.0f,15.0f, false);
    shape.addVertex(5.0f,8.0f, false);
    shape.addVertex(0.0f,10.0f,true);
    shape.closeLastOutline(true);
    shape.addEmptyOutline();
    shape.addVertex(5.0f,-5.0f,true);
    shape.addVertex(10.0f,-5.0f, false);
    shape.addVertex(10.0f,0.0f, true);
    shape.addVertex(5.0f,0.0f, false);
    shape.closeLastOutline(true);

    /** Same shape as above but without any off-curve vertices */
    shape = new OutlineShape(getRenderer().getRenderState().getVertexFactory());
    outlineShapes.add(shape);
    offset = 30;
    shape.addVertex(offset+0.0f,-10.0f, true);
    shape.addVertex(offset+17.0f,-10.0f, true);
    shape.addVertex(offset+11.0f,5.0f, true);
    shape.addVertex(offset+16.0f,10.0f, true);
    shape.addVertex(offset+7.0f,15.0f, true);
    shape.addVertex(offset+6.0f,8.0f, true);
    shape.addVertex(offset+0.0f,10.0f, true);
    shape.closeLastOutline(true);
    shape.addEmptyOutline();
    shape.addVertex(offset+5.0f,0.0f, true);
    shape.addVertex(offset+5.0f,-5.0f, true);
    shape.addVertex(offset+10.0f,-5.0f, true);
    shape.addVertex(offset+10.0f,0.0f, true);
    shape.closeLastOutline(true);

    region = GLRegion.create(getRenderModes(), null);
    region.addOutlineShapes(outlineShapes, null, null);
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:42,代码来源:GPURegionGLListener02.java

示例4: createGLRegion

import com.jogamp.graph.curve.opengl.GLRegion; //导入方法依赖的package包/类
protected GLRegion createGLRegion() {
    return GLRegion.create(renderModes, null);
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:4,代码来源:UIShape.java

示例5: createGLRegion

import com.jogamp.graph.curve.opengl.GLRegion; //导入方法依赖的package包/类
@Override
protected GLRegion createGLRegion() {
    return GLRegion.create(getRenderModes(), texSeq);
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:5,代码来源:TextureSeqButton.java


注:本文中的com.jogamp.graph.curve.opengl.GLRegion.create方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。