ALONSO Laurent
61d206ae84
try to improve the sheets conversion when the width is less than 280
...
special_parse.cpp: simplify the code
2022-06-30 01:10:46 -04:00
ALONSO Laurent
f31f5947e4
continue to simplify the code...
2022-06-30 01:10:46 -04:00
ALONSO Laurent
e4d220799e
graphics: add a picture to store/show some errors,
...
Scene Editor: try to do not end with a fatal errors if a terrain's picture or
map picture does not exist, to be improved...
2022-06-30 01:10:46 -04:00
Laurent alonso
303674da10
boe.infodlg.cpp: try to correct a problem when displaying notes,
...
gfxsheets.cpp: try to make the scenario's graphic resolution independent...
2022-06-30 01:08:48 -04:00
Laurent alonso
92eee35b66
graphics: finish to change code to store some images as Texture, ...
2022-06-30 01:08:48 -04:00
Laurent alonso
a407d61f4c
graphics: continue to change code to store some images as Texture
...
+ replace graf_pos and graf_pos_ref by Texture_ref
+ correct cCustomGraphics::copy_graphic
2022-06-30 01:08:48 -04:00
Laurent alonso
e625927a29
graphics: begin to rewrite code to be more simple: - add
...
a struct Texture to store a sf::Texture and the application's texture sizes,
- add a texture resources manager and retrieve codes to allow - if needed,
rescaling startsplash and spidlogo at startup - loading some graphics with
different resolutions: buttons, inventory, pcedbuttons, statarea,
startanim, startbut, startup, terscreen, textbar, transcript can be
used to load high resolution pictures.
Note: currently, render_image and res_image are a mess as Texture and sf:Texture classes
cohabit :-~
2022-06-30 01:08:48 -04:00
805b35ec90
Fix Classify Custom Graphics wrongly claiming you don't have any
2020-02-05 23:48:36 -05:00
d530abe00b
Make use of the new resource manager's purgeable flag
2020-01-26 16:14:39 -05:00
14e2597108
Expose the shared pointer instead of the raw pointer in the resource manager and rewrite the custom sheets list to use a vector instead of manual memory management
...
In particular, this should fix a segmentation fault in the sound system caused by the resource manager pulling a resource that's in use.
2020-01-26 15:10:57 -05:00
542c037342
Integrate a new resource manager which should have better performance
2020-01-26 11:53:19 -05:00
c2ce2a2cd1
Split up the graphtool files
2017-04-14 15:43:07 -04:00