c++/SDL2:b3


b3 is big change :

  • data image form by data table and color list (take less memory)
  • image.h  form data image and class COMP_IMG

image.h make by exe :



USE:
image_name.rect --> SDL_Rect (x and y pos )
image_name.draw( SDL_Renderer* renderer); --> load and draw
or
image_name.load(SDL_Renderer* renderer) --> load texture
 image_name.texture is SDL_Texture* texture --> draw with SDL_RenderCopy

Files

img_compilerc++/SDL2_b3.zip 1.5 MB
Feb 27, 2021

Get Cimg

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.