Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #600: Drawing Filled Boxes and Text
Product:
TV3D SDK 6.5
Language:
C#
Current State:
New
Resolution:
Unconfirmed
Created On:
May 25th, 2006
Last Modified:
May 25th, 2006
Reported By:
billythekid
When drawing a standard box with .Draw_box(...) and then drawing text inside the box no problem exists.

This code works:
TVSingletons.Screen2DImmediate.Action_Begin2D();
TVSingletons.Screen2DImmediate.Draw_Box(0, 0, 200, 200);
TVSingletons.Screen2DImmediate.Action_End2D();
TVSingletons.Screen2DText.Action_BeginText();
TVSingletons.Screen2DText.NormalFont_DrawText("Button12", 0, 10, TVSingletons.Globals.RGBA(0, 0, 0, 1), fontID);
TVSingletons.Screen2DText.Action_EndText();

However as soon as I draw a filled box:

TVSingletons.Screen2DImmediate.Action_Begin2D();
TVSingletons.Screen2DImmediate.Draw_FilledBox(0, 0, 200, 200);
TVSingletons.Screen2DText.Action_BeginText();
TVSingletons.Screen2DText.NormalFont_DrawText("Button12", 0, 10, TVSingletons.Globals.RGBA(0, 0, 0, 1), fontID);
TVSingletons.Screen2DText.Action_EndText();
TVSingletons.Screen2DImmediate.Action_End2D();

I am unable to see the text drawn because of the filled box. I believe this is because of the fact that I am doing an Action_Begin()/End() and then a BeginText() inside of that. However why would this work for Draw_Box() and not Draw_FilledBox().

Also it would be much easier and nicer if there was a common start and end function for all 2D functions. Such as a Begin_2D() / End_2D() that would work for Text, drawing 2D primitives, etc.

It seems like a big inconvience to have to draw all my filled 2D shapes and then my Text seperate.

Thanks!

Comments:

No comments available.