Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In case anyone wants to comment, my plans for `*bitmap* in the future, are:
- ```cpp
- *bitmap bmp-> Load(int target); //Loads a specific bitmap ID into the pointer.
- *bitmap bmp-> LoadFile("filename"); //Loads a bitmap from a file.
- *bitmap bmp-> Save("filename", int format); //Savesa bitmap to a file.
- *bitmap bmp-> Create(int h, int w); //Creates a new user bitmap with specified dimensions.
- //I'm not sure if I want to include a depth arg. Perhaps later, as CreateEx().
- *bitmap bmp-> Destroy(); //Destroys the bitmap associated with the pointer.
- // All screen drawing instructions.
- //e,g.
- *bitmap bmp-> Rectangle(...args); //Rectangle drawn to the bitmap loaded to this pointer.
- //No need to set a render target.
- *bitmap bmp-> BlitTo(bitmap dest); // Blits to a specified target. The screen would be -1.
- *bitmap bmp-> BlitFrom(int src); //Blits a source bitmap to the pointer.
- *bitmap bmp-> Resize(int h,int w, bool scale); //Resizes a bitmap. Creates a new bitmap, blits the
- // current bitmap to it, destroys the old one and assigns the new one to the pointer.
- int *bitmap bmp-> Width; //Read-only. Returns the width of the bitmap. May not be feasible.
- int *bitmap bmp-> Height; //Read-only. Returns the height of the bitmap. May not be feasible.
- int *bitmap bmp-> Depth ; //If I add depth, this would return it.
- // May not be feasible on two accounts. (read-only)
- *bitmap bmp-> Transform(int effect, int args[]); //Applies a rendering to the current bitmap.
- *bitmap bmp-> RenderTo(target, mode, args[]); //Renders the bitmap associated with the pointer to
- // another target bitmap, using an effect (e,g. QUAD), and args for the effect passed as an array..
- *bitmap bmp-> RenderFrom(target, mode, args[]); //The same as the above, but a target bitmap is
- // rendered to the pointer.
- *bitmap bmp-> GrabScreen(bool subscreen); //Copies the current screen, all layers and objects,
- // including the subscreen, to the pointer.```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement