-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59df2e5
commit 8250cd0
Showing
12 changed files
with
164 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
int colorCode = SAMP_ARGB_TO_HEX {alpha} 0xFF {red} 0x5A {green} 0x14 {blue} 0xCA | ||
int colorCode = SF_ARGB_TO_HEX {alpha} 0xFF {red} 0x5A {green} 0x14 {blue} 0xCA | ||
// expected: colorCode = 0xFF5A14CA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int textFont = SF_RENDER_CREATE_FONT {fontname} "Calibri" {size} 9 {flags} 0x04 | ||
int textWidth = SF_RENDER_GET_DRAW_WIDTH_OF_TEXT_WITH_FONT textFont {text} "Hello World!" | ||
// do something to textWidth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int textFont = SF_RENDER_CREATE_FONT {fontname} "Calibri" {size} 9 {flags} 0x04 | ||
int textHeight = SF_RENDER_GET_FONT_DRAW_HEIGHT textFont | ||
// do something to textHeight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
int textFont = SF_RENDER_CREATE_FONT {fontname} "Calibri" {size} 9 {flags} 0x04 | ||
// do something to textFont |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int textFont = SF_RENDER_CREATE_FONT {fontname} "Calibri" {size} 9 {flags} 0x04 | ||
// do something to textFont | ||
SF_RENDER_DELETE_FONT textFont // free renderfont object from memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
int textFont = SF_RENDER_CREATE_FONT {fontname} "Calibri" {size} 9 {flags} 0x04 | ||
SF_RENDER_DRAW_TEXT_WITH_FONT textFont {text} "Hello World" {coordx} 400 {coordy} 215 {color} 0xFFFF0000 // write a red colored "Hello World" at screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SF_RENDER_DRAW_POLYGON {coordx} 500 {coordy} 308 {width} 300 {height} 218 {cornercount} 5 {heading} 60.0 {color} 0xFF00FF00 // draw a green pentagon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
int myTexture = SF_RENDER_LOAD_TEXTURE_FROM_FILE {filepath} "pic.png" | ||
// do something to myTexture |
Oops, something went wrong.