SOS: 3D textbox with ControlP5
in
Contributed Library Questions
•
7 months ago
I am drawing a 3D text box using ControlP5 library. However the .setPosition does not allow the Z dimension. I have tried to translate it but it ignores the translate. Anyone can help? This is for an urgent deadline... Thanks.
pushMatrix();
translate(100, 100, 50);
description = cp5.addTextarea("txt" + ID)
.setPosition(0,0)
.setSize(source.width/2, source.height)
.setFont(createFont("arial",8))
.setLineHeight(10)
.setColor(color(255));
description.setText("Lorem ipsum dolor sit amet.");
popMatrix();
pushMatrix();
translate(100, 100, 50);
description = cp5.addTextarea("txt" + ID)
.setPosition(0,0)
.setSize(source.width/2, source.height)
.setFont(createFont("arial",8))
.setLineHeight(10)
.setColor(color(255));
description.setText("Lorem ipsum dolor sit amet.");
popMatrix();
1