Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Projet l2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VAUTRIN Guillaume
Projet l2
Commits
ad62def3
Commit
ad62def3
authored
4 years ago
by
vautrin33u
Browse files
Options
Downloads
Patches
Plain Diff
Modification headers
parent
586580a9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Doc/html/graphisme_8h_source.html
+33
-34
33 additions, 34 deletions
Doc/html/graphisme_8h_source.html
graphisme.h
+33
-1
33 additions, 1 deletion
graphisme.h
with
66 additions
and
35 deletions
Doc/html/graphisme_8h_source.html
+
33
−
34
View file @
ad62def3
...
...
@@ -100,43 +100,42 @@ $(function() {
<div
class=
"line"
><a
name=
"l00041"
></a><span
class=
"lineno"
>
41
</span>
 
};
</div>
<div
class=
"line"
><a
name=
"l00046"
></a><span
class=
"lineno"
>
46
</span>
 
<span
class=
"keyword"
>
typedef
</span>
<span
class=
"keyword"
>
struct
</span><a
class=
"code"
href=
"structtextures__s.html"
>
textures_s
</a>
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
;
</div>
<div
class=
"line"
><a
name=
"l00047"
></a><span
class=
"lineno"
>
47
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00048"
></a><span
class=
"lineno"
>
48
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00049"
></a><span
class=
"lineno"
>
49
</span>
 
SDL_Texture* charger_image (
<span
class=
"keyword"
>
const
</span>
<span
class=
"keywordtype"
>
char
</span>
* nomfichier, SDL_Renderer* renderer);
</div>
<div
class=
"line"
><a
name=
"l00050"
></a><span
class=
"lineno"
>
50
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00051"
></a><span
class=
"lineno"
>
51
</span>
 
SDL_Texture* charger_image_transparente(
<span
class=
"keyword"
>
const
</span>
<span
class=
"keywordtype"
>
char
</span>
* nomfichier, SDL_Renderer* renderer, Uint8 r, Uint8 g, Uint8 b) ;
</div>
<div
class=
"line"
><a
name=
"l00052"
></a><span
class=
"lineno"
>
52
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00053"
></a><span
class=
"lineno"
>
53
</span>
 
SDL_Texture* charger_texte (
<span
class=
"keyword"
>
const
</span>
<span
class=
"keywordtype"
>
char
</span>
*
<a
class=
"code"
href=
"structtextures__s.html#a176123cbea52b66da25aefb60f64b7b4"
>
message
</a>
, SDL_Renderer* renderer, TTF_Font *font, SDL_Color color);
</div>
<div
class=
"line"
><a
name=
"l00054"
></a><span
class=
"lineno"
>
54
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00055"
></a><span
class=
"lineno"
>
55
</span>
 
<span
class=
"keywordtype"
>
void
</span>
render_texte(SDL_Renderer *renderer, SDL_Rect zone_texte, SDL_Texture* texte);
</div>
<div
class=
"line"
><a
name=
"l00055"
></a><span
class=
"lineno"
>
55
</span>
 
SDL_Texture* charger_image (
<span
class=
"keyword"
>
const
</span>
<span
class=
"keywordtype"
>
char
</span>
* nomfichier, SDL_Renderer* renderer);
</div>
<div
class=
"line"
><a
name=
"l00056"
></a><span
class=
"lineno"
>
56
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00061"
></a><span
class=
"lineno"
>
61
</span>
 
<span
class=
"keywordtype"
>
void
</span>
clean_textures(
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures);
</div>
<div
class=
"line"
><a
name=
"l00062"
></a><span
class=
"lineno"
>
62
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00070"
></a><span
class=
"lineno"
>
70
</span>
 
<span
class=
"keywordtype"
>
void
</span>
nettoyage_graphisme (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures, SDL_Window *fenetre);
</div>
<div
class=
"line"
><a
name=
"l00071"
></a><span
class=
"lineno"
>
71
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00078"
></a><span
class=
"lineno"
>
78
</span>
 
<span
class=
"keywordtype"
>
void
</span>
init_textures (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures, TTF_Font *font);
</div>
<div
class=
"line"
><a
name=
"l00067"
></a><span
class=
"lineno"
>
67
</span>
 
SDL_Texture* charger_image_transparente(
<span
class=
"keyword"
>
const
</span>
<span
class=
"keywordtype"
>
char
</span>
* nomfichier, SDL_Renderer* renderer, Uint8 r, Uint8 g, Uint8 b) ;
</div>
<div
class=
"line"
><a
name=
"l00068"
></a><span
class=
"lineno"
>
68
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00078"
></a><span
class=
"lineno"
>
78
</span>
 
SDL_Texture* charger_texte (
<span
class=
"keyword"
>
const
</span>
<span
class=
"keywordtype"
>
char
</span>
*
<a
class=
"code"
href=
"structtextures__s.html#a176123cbea52b66da25aefb60f64b7b4"
>
message
</a>
, SDL_Renderer* renderer, TTF_Font *font, SDL_Color color);
</div>
<div
class=
"line"
><a
name=
"l00079"
></a><span
class=
"lineno"
>
79
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00087"
></a><span
class=
"lineno"
>
87
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_spri
te
(SDL_Renderer *renderer, SDL_
Texture *tex,
<a
class=
"code"
href=
"structsprite__s.html"
>
sprite_t
</a>
spri
te);
</div>
<div
class=
"line"
><a
name=
"l00087"
></a><span
class=
"lineno"
>
87
</span>
 
<span
class=
"keywordtype"
>
void
</span>
render_tex
te(SDL_Renderer *renderer, SDL_
Rect zone_texte, SDL_Texture* tex
te);
</div>
<div
class=
"line"
><a
name=
"l00088"
></a><span
class=
"lineno"
>
88
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00096"
></a><span
class=
"lineno"
>
96
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_graphics (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures,
<a
class=
"code"
href=
"structworld__s.html"
>
world_t
</a>
*world);
</div>
<div
class=
"line"
><a
name=
"l00097"
></a><span
class=
"lineno"
>
97
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00105"
></a><span
class=
"lineno"
>
105
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_mobilier (SDL_Renderer* renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
* textures,
<a
class=
"code"
href=
"structworld__s.html"
>
world_t
</a>
* world);
</div>
<div
class=
"line"
><a
name=
"l00106"
></a><span
class=
"lineno"
>
106
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00114"
></a><span
class=
"lineno"
>
114
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_texte (SDL_Renderer* renderer,
<a
class=
"code"
href=
"structworld__s.html"
>
world_t
</a>
* world,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
* textures);
</div>
<div
class=
"line"
><a
name=
"l00115"
></a><span
class=
"lineno"
>
115
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00124"
></a><span
class=
"lineno"
>
124
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_ingredients (SDL_Renderer* renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
* textures,
<a
class=
"code"
href=
"structsprite__s.html"
>
sprite_t
</a>
* ingredients,
<span
class=
"keywordtype"
>
int
</span>
taille_commande);
</div>
<div
class=
"line"
><a
name=
"l00125"
></a><span
class=
"lineno"
>
125
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00133"
></a><span
class=
"lineno"
>
133
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_graphics_menu (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures,
<a
class=
"code"
href=
"structmenu__s.html"
>
menu_t
</a>
*
<a
class=
"code"
href=
"structtextures__s.html#a8aa0e4f11fb509f6af5b59e7be1af96b"
>
menu
</a>
);
</div>
<div
class=
"line"
><a
name=
"l00134"
></a><span
class=
"lineno"
>
134
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00144"
></a><span
class=
"lineno"
>
144
</span>
 
SDL_Rect create_SDL_rect (
<span
class=
"keywordtype"
>
int
</span>
x,
<span
class=
"keywordtype"
>
int
</span>
y,
<span
class=
"keywordtype"
>
int
</span>
w,
<span
class=
"keywordtype"
>
int
</span>
h);
</div>
<div
class=
"line"
><a
name=
"l00145"
></a><span
class=
"lineno"
>
145
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00156"
></a><span
class=
"lineno"
>
156
</span>
 
SDL_Rect create_SDL_rect_from_texture (SDL_Texture * texture,
<span
class=
"keywordtype"
>
int
</span>
x,
<span
class=
"keywordtype"
>
int
</span>
y,
<span
class=
"keywordtype"
>
int
</span>
h,
<span
class=
"keywordtype"
>
int
</span>
w);
</div>
<div
class=
"line"
><a
name=
"l00164"
></a><span
class=
"lineno"
>
164
</span>
 
SDL_Rect create_SDL_rect_from_sprite (
<a
class=
"code"
href=
"structsprite__s.html"
>
sprite_t
</a>
* sprite);
</div>
<div
class=
"line"
><a
name=
"l00165"
></a><span
class=
"lineno"
>
165
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00173"
></a><span
class=
"lineno"
>
173
</span>
 
<span
class=
"keywordtype"
>
void
</span>
update_graphics (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structworld__s.html"
>
world_t
</a>
*world,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures);
</div>
<div
class=
"line"
><a
name=
"l00174"
></a><span
class=
"lineno"
>
174
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00183"
></a><span
class=
"lineno"
>
183
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_graphics_score(SDL_Renderer* renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
* textures,
<span
class=
"keywordtype"
>
int
</span>
* scores,
<span
class=
"keywordtype"
>
int
</span>
score_actuel);
</div>
<div
class=
"line"
><a
name=
"l00184"
></a><span
class=
"lineno"
>
184
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00185"
></a><span
class=
"lineno"
>
185
</span>
 
<span
class=
"preprocessor"
>
#endif
</span></div>
<div
class=
"line"
><a
name=
"l00093"
></a><span
class=
"lineno"
>
93
</span>
 
<span
class=
"keywordtype"
>
void
</span>
clean_textures(
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures);
</div>
<div
class=
"line"
><a
name=
"l00094"
></a><span
class=
"lineno"
>
94
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00102"
></a><span
class=
"lineno"
>
102
</span>
 
<span
class=
"keywordtype"
>
void
</span>
nettoyage_graphisme (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures, SDL_Window *fenetre);
</div>
<div
class=
"line"
><a
name=
"l00103"
></a><span
class=
"lineno"
>
103
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00110"
></a><span
class=
"lineno"
>
110
</span>
 
<span
class=
"keywordtype"
>
void
</span>
init_textures (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures, TTF_Font *font);
</div>
<div
class=
"line"
><a
name=
"l00111"
></a><span
class=
"lineno"
>
111
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00119"
></a><span
class=
"lineno"
>
119
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_sprite (SDL_Renderer *renderer, SDL_Texture *tex,
<a
class=
"code"
href=
"structsprite__s.html"
>
sprite_t
</a>
sprite);
</div>
<div
class=
"line"
><a
name=
"l00120"
></a><span
class=
"lineno"
>
120
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00128"
></a><span
class=
"lineno"
>
128
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_graphics (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures,
<a
class=
"code"
href=
"structworld__s.html"
>
world_t
</a>
*world);
</div>
<div
class=
"line"
><a
name=
"l00129"
></a><span
class=
"lineno"
>
129
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00137"
></a><span
class=
"lineno"
>
137
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_mobilier (SDL_Renderer* renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
* textures,
<a
class=
"code"
href=
"structworld__s.html"
>
world_t
</a>
* world);
</div>
<div
class=
"line"
><a
name=
"l00138"
></a><span
class=
"lineno"
>
138
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00146"
></a><span
class=
"lineno"
>
146
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_texte (SDL_Renderer* renderer,
<a
class=
"code"
href=
"structworld__s.html"
>
world_t
</a>
* world,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
* textures);
</div>
<div
class=
"line"
><a
name=
"l00147"
></a><span
class=
"lineno"
>
147
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00156"
></a><span
class=
"lineno"
>
156
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_ingredients (SDL_Renderer* renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
* textures,
<a
class=
"code"
href=
"structsprite__s.html"
>
sprite_t
</a>
* ingredients,
<span
class=
"keywordtype"
>
int
</span>
taille_commande);
</div>
<div
class=
"line"
><a
name=
"l00157"
></a><span
class=
"lineno"
>
157
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00165"
></a><span
class=
"lineno"
>
165
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_graphics_menu (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures,
<a
class=
"code"
href=
"structmenu__s.html"
>
menu_t
</a>
*
<a
class=
"code"
href=
"structtextures__s.html#a8aa0e4f11fb509f6af5b59e7be1af96b"
>
menu
</a>
);
</div>
<div
class=
"line"
><a
name=
"l00166"
></a><span
class=
"lineno"
>
166
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00176"
></a><span
class=
"lineno"
>
176
</span>
 
SDL_Rect create_SDL_rect (
<span
class=
"keywordtype"
>
int
</span>
x,
<span
class=
"keywordtype"
>
int
</span>
y,
<span
class=
"keywordtype"
>
int
</span>
w,
<span
class=
"keywordtype"
>
int
</span>
h);
</div>
<div
class=
"line"
><a
name=
"l00177"
></a><span
class=
"lineno"
>
177
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00188"
></a><span
class=
"lineno"
>
188
</span>
 
SDL_Rect create_SDL_rect_from_texture (SDL_Texture * texture,
<span
class=
"keywordtype"
>
int
</span>
x,
<span
class=
"keywordtype"
>
int
</span>
y,
<span
class=
"keywordtype"
>
int
</span>
h,
<span
class=
"keywordtype"
>
int
</span>
w);
</div>
<div
class=
"line"
><a
name=
"l00196"
></a><span
class=
"lineno"
>
196
</span>
 
SDL_Rect create_SDL_rect_from_sprite (
<a
class=
"code"
href=
"structsprite__s.html"
>
sprite_t
</a>
* sprite);
</div>
<div
class=
"line"
><a
name=
"l00197"
></a><span
class=
"lineno"
>
197
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00205"
></a><span
class=
"lineno"
>
205
</span>
 
<span
class=
"keywordtype"
>
void
</span>
update_graphics (SDL_Renderer *renderer,
<a
class=
"code"
href=
"structworld__s.html"
>
world_t
</a>
*world,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
*textures);
</div>
<div
class=
"line"
><a
name=
"l00206"
></a><span
class=
"lineno"
>
206
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00215"
></a><span
class=
"lineno"
>
215
</span>
 
<span
class=
"keywordtype"
>
void
</span>
apply_graphics_score(SDL_Renderer* renderer,
<a
class=
"code"
href=
"structtextures__s.html"
>
textures_t
</a>
* textures,
<span
class=
"keywordtype"
>
int
</span>
* scores,
<span
class=
"keywordtype"
>
int
</span>
score_actuel);
</div>
<div
class=
"line"
><a
name=
"l00216"
></a><span
class=
"lineno"
>
216
</span>
 
</div>
<div
class=
"line"
><a
name=
"l00217"
></a><span
class=
"lineno"
>
217
</span>
 
<span
class=
"preprocessor"
>
#endif
</span></div>
</div>
<!-- fragment -->
</div>
<!-- contents -->
<div
class=
"ttc"
id=
"astructworld__s_html"
><div
class=
"ttname"
><a
href=
"structworld__s.html"
>
world_s
</a></div><div
class=
"ttdef"
><b>
Definition:
</b>
stocks.h:28
</div></div>
<div
class=
"ttc"
id=
"astructtextures__s_html_a29702457ea36905e09af75a6c118784c"
><div
class=
"ttname"
><a
href=
"structtextures__s.html#a29702457ea36905e09af75a6c118784c"
>
textures_s::titre
</a></div><div
class=
"ttdeci"
>
SDL_Texture * titre
</div><div
class=
"ttdef"
><b>
Definition:
</b>
graphisme.h:31
</div></div>
...
...
This diff is collapsed.
Click to expand it.
graphisme.h
+
33
−
1
View file @
ad62def3
...
...
@@ -45,13 +45,45 @@ struct textures_s{
typedef
struct
textures_s
textures_t
;
/**
* @brief Charge une image sous forme de texture
*
* @param nomfichier Emplacement du fichier (BMP)
* @param renderer
* @return SDL_Texture*
*/
SDL_Texture
*
charger_image
(
const
char
*
nomfichier
,
SDL_Renderer
*
renderer
);
/**
* @brief Charge une image avec des éléments transparents sur une texture
*
* @param nomfichier Emplacement du fichier
* @param renderer
* @param r
* @param g
* @param b
* @return SDL_Texture*
*/
SDL_Texture
*
charger_image_transparente
(
const
char
*
nomfichier
,
SDL_Renderer
*
renderer
,
Uint8
r
,
Uint8
g
,
Uint8
b
)
;
/**
* @brief Charge du texte sur une texture
*
* @param message Texte à afficher
* @param renderer
* @param font Police utilisé pour retranscrire le texte à l'écran
* @param color Couleur du texte
* @return SDL_Texture*
*/
SDL_Texture
*
charger_texte
(
const
char
*
message
,
SDL_Renderer
*
renderer
,
TTF_Font
*
font
,
SDL_Color
color
);
/**
* @brief Appliquer le texte sur le renderer
*
* @param renderer
* @param zone_texte Zone de l'écran où faire apparaître le texte
* @param texte Texture correspondant au texte
*/
void
render_texte
(
SDL_Renderer
*
renderer
,
SDL_Rect
zone_texte
,
SDL_Texture
*
texte
);
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment