1
Graphics / Good Way To "Lock" Something To A View
« on: March 12, 2017, 06:53:01 pm »
So I looked around for a good way to basically attach something to a view, but I couldn't find any great solutions.
Right now I'm trying to draw a tool box with text and images over top the rest of my editor for I can see information without it looking like a mess. Each frame the view moves I have to reset the position of the tool box, each image, and each text object.
if(*view moves*){
*update positioning for each object* //I don't want this step
...
...
}
draw(*object*)
...
...
Is there a way I can simply "attach" these to the view? Or would I maybe be better off drawing each of these to an image, positioning the image and then drawing that?
Right now I'm trying to draw a tool box with text and images over top the rest of my editor for I can see information without it looking like a mess. Each frame the view moves I have to reset the position of the tool box, each image, and each text object.
if(*view moves*){
*update positioning for each object* //I don't want this step
...
...
}
draw(*object*)
...
...
Is there a way I can simply "attach" these to the view? Or would I maybe be better off drawing each of these to an image, positioning the image and then drawing that?