Hello, I am a Game Developer student. Currently I have my own sprite class built that utilizes the DirectX Sprite.

This class saves the width, height, and center of the sprite, as well as it's current position and scale.


I am trying to surround a sprite (A button sprite) with a RECT and use that RECT's information for a bounding box. Though it seems the RECT never has the right size or position no matter how good the math being used to place it according to the sprites information(Width, Height, Position, Scale).

I want to visually see this RECT drawn to debug it better, but I can't find any good documentation on how to draw a rectangle in DirectX that would resemble the RECT structure. If anyone knows how to help on the subject it would be awesome.