Modules/Texturizer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Module_Info| | {{Module_Info| | ||
name = Texturizer | | name = Texturizer | | ||
version = 0. | version = 0.91 | | ||
author = [[User: | author = [[User:Jyrno|Jyrno]] and JoRX | | ||
module_website = ''Not available'' | | module_website = ''Not available'' | | ||
download_link = | download_link = [http://www.mediafire.com/?65c339jt4wl21i5 Here] [http://www.multiupload.com/JW4SICQG57 Mirror] | | ||
license = '' | license = ''Unlicensed'' | | ||
written_in = C++ | | |||
operating_system = Windows only | | |||
compatible_with = 1.0.4 | | |||
}} | }} | ||
Texturizer is a module which provides TXD libary writing and GD functions to MTASA server. It | Texturizer is a module which provides TXD libary writing and GD functions to MTASA server. It is currently available Windows only, however since the build system is CMake it should be pretty simple to use it on another platforms. | ||
__TOC__ | |||
==Installation== | ==Installation== | ||
===Windows=== | ===Windows=== | ||
Then, add the following line in mtaserver.conf: | # Uncompress the file Texturizer.dll into your ''%PROGRAMFILES%\MTA San Andreas\server\mods\deathmatch\modules\'' directory. | ||
# Uncompress the GD libary binary bgd.dll and libpng14.dll into your ''%PROGRAMFILES%\MTA San Andreas\server\'' directory. | |||
# Then, add the following line in mtaserver.conf: | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<module src="Texturizer.dll" /> | <module src="Texturizer.dll" /> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Now all you have to do is start your server. | |||
'''Also Recommended:''' | |||
# Uncompress the texturizer resource to your ''%PROGRAMFILES%\MTA San Andreas\server\mods\deathmatch\resources\'' directory. | |||
# Then, add the following line in mtaserver.conf: | |||
<syntaxhighlight lang="xml"> | |||
<resource src="texturizer" startup="1" protected="0" /> | |||
</syntaxhighlight> | |||
This provides automatic memory cleanup when you forget to destroy images some resource used on it's unload. | |||
==Functions== | ==Functions== | ||
Line 27: | Line 39: | ||
[[Category:Modules]] | [[Category:Modules]] | ||
[[ | |||
[[ru:Modules/Texturizer]] |
Latest revision as of 09:25, 20 May 2012
Module info | |
Name | Texturizer |
Version | 0.91 |
Author | Jyrno and JoRX |
Module website | Not available |
Download link | Here Mirror |
License | Unlicensed |
Written in | C++ |
Operating system | Windows only |
Compatible with | 1.0.4 |
Texturizer is a module which provides TXD libary writing and GD functions to MTASA server. It is currently available Windows only, however since the build system is CMake it should be pretty simple to use it on another platforms.
Installation
Windows
- Uncompress the file Texturizer.dll into your %PROGRAMFILES%\MTA San Andreas\server\mods\deathmatch\modules\ directory.
- Uncompress the GD libary binary bgd.dll and libpng14.dll into your %PROGRAMFILES%\MTA San Andreas\server\ directory.
- Then, add the following line in mtaserver.conf:
<module src="Texturizer.dll" />
Now all you have to do is start your server.
Also Recommended:
- Uncompress the texturizer resource to your %PROGRAMFILES%\MTA San Andreas\server\mods\deathmatch\resources\ directory.
- Then, add the following line in mtaserver.conf:
<resource src="texturizer" startup="1" protected="0" />
This provides automatic memory cleanup when you forget to destroy images some resource used on it's unload.
Functions
Texture Functions
GD Functions
Create
Info
Save
Cleanup
Alter
- imageGetAlphaBlending
- imageSetAlphaBlending
- imageGetAntiAlias
- imageSetAntiAlias
- imageGetInterlace
- imageSetInterlace
- imageGetSaveAlpha
- imageSetSaveAlpha
Color
- imageColorAllocate
- imageColorAllocateAlpha
- imageColorClosest
- imageColorClosestAlpha
- imageColorExact
- imageColorExactAlpha
- imageColorResolve
- imageColorResolveAlpha
- imageGetColorAt
- imageSetColorAt
- imageColorDeallocate
- imageColorsTotal
- imageColorSpecial
Text
- imageFontHeight
- imageFontWidth
- imageChar
- imageCharUp
- imageString
- imageStringUp
- imageTtfText
- imageTtfBBox
Draw