Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
barouet
barouet's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
text rendering with off screen buffer PGraphicsOPENGL
[2 Replies]
24-Jul-2012 11:45 AM
Forum:
Core Library Questions
Greetings,
Any idea why rendering text to an PGraphicsOpenGL slows drastically things down? This simple snippet runs at 8fps!
Thanks
private PGraphicsOpenGL canvas;
public void setup() {
size(1024, 768, P3D);
canvas = (PGraphicsOpenGL) createGraphics(width, height, P3D);
}
public void draw() {
canvas.beginDraw();
canvas.background(0);
canvas.fill(255);
canvas.text("hello world", width / 2, height / 2, 0);
canvas.endDraw();(
image(canvas, 0, 0);
}
«Prev
Next »
Moderate user : barouet
Forum