TheouAegis
Member
So thinking about it, my current method in a thing I'm working on for myself (like, literally for myself only to use) probably isn't the best way to go about things, but I'm just trying things out.
So I'm working on a map editor and the first thing I worked on was adding a crumby gradient border around the window using a draw_clear() followed by a series of draw_rectangle() loops. I then added a zoomable editor grid using draw_line() calls that displays the current zoom level for a couple seconds. This worked nicely enough for me when it was all set to run every single step. The problem with that was it shouldn't be run every step -- the border should only be drawn when the app starts and the grid should only be drawn when it's resized. So I put all the code into a switch, created a system state variable, disabled clearing the window with the background color, disabled the room's background color, disabled the display buffer fill, and.... it gave me a black screen after one frame of rendering.
So my question is how can I disable the automatic clearing of the application_surface? Is there any way to treat the application_surface just like any other surface whereby its contents are only modified when I say to modify them? Or am I going to have to create my own surface? Or do you have another idea?
So I'm working on a map editor and the first thing I worked on was adding a crumby gradient border around the window using a draw_clear() followed by a series of draw_rectangle() loops. I then added a zoomable editor grid using draw_line() calls that displays the current zoom level for a couple seconds. This worked nicely enough for me when it was all set to run every single step. The problem with that was it shouldn't be run every step -- the border should only be drawn when the app starts and the grid should only be drawn when it's resized. So I put all the code into a switch, created a system state variable, disabled clearing the window with the background color, disabled the room's background color, disabled the display buffer fill, and.... it gave me a black screen after one frame of rendering.
So my question is how can I disable the automatic clearing of the application_surface? Is there any way to treat the application_surface just like any other surface whereby its contents are only modified when I say to modify them? Or am I going to have to create my own surface? Or do you have another idea?