API Question Sketchpad - how do you clip text

ADSWNJ

Scientist
Addon Developer
Joined
Aug 5, 2011
Messages
1,667
Reaction score
7
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.
 
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.
 
Back
Top