本文整理匯總了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);
}