API Question Sketchpad - how do you clip text

ADSWNJ

Scientist
Addon Developer
Joined
Aug 5, 2011
Messages
1,667
Reaction score
3
Points
38
Looking for advice on how to intentionally clip text outside of an arbitrary rectangle on the HUD. For example, shopping the top 8 pixels off a string, if the position straddles the top of window.

Reason: I want to deliver a speed tape on a HUD, and I want the text to slide off the window a pixel-row at a time.
 

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,666
Reaction score
795
Points
128
Looking for advice on how to intentionally clip text outside of an arbitrary rectangle on the HUD. For example, shopping the top 8 pixels off a string, if the position straddles the top of window.
Reason: I want to deliver a speed tape on a HUD, and I want the text to slide off the window a pixel-row at a time.


There is a ClipRect() functionality in Sketchpad2 interface in D3D9. But it's not compatible with D3D7 inline engine. As long as the D3D9 is running you can simply cast a Sketchpad pointer to Sketchpad3 pointer.
 
Top