本文整理汇总了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);
}
示例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);
}
示例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);
}
示例4: createGLRegion
import com.jogamp.graph.curve.opengl.GLRegion; //导入方法依赖的package包/类
protected GLRegion createGLRegion() {
return GLRegion.create(renderModes, null);
}
示例5: createGLRegion
import com.jogamp.graph.curve.opengl.GLRegion; //导入方法依赖的package包/类
@Override
protected GLRegion createGLRegion() {
return GLRegion.create(getRenderModes(), texSeq);
}