[15 Typefaces] [No Need to know DirectX] [Simplifies Using Fonts]
Are you tired of the trouble of creating font pointers only to have to spend more time creating custom Reset() function for Each Font?! Then if thats not enough, the fonts are very limited in their own right. Sure you can change the color, but you can't change the size, or style, or boldness, or even italics without creating an entirely new font, which incurs more managing and more hassle! Don't you wish there was some magic code that handled all the complicated D3D stuff for you so all you had to do is say exactly what kind of font u want when u need it and don't have to worry about what happens to that font afterwords?
-OR-
Are you a beginning game hacker, probably overwhelmed, by the complexity of hacks. After spending hours searching for values pointers don't you wish you too could used D3D in your hack without having to learn all the arcane functions of DirectX, well look no further!
DPrint does all this and more! This is only version one, but it already handles a lot of problems concerning using simple DirectX in any hack. It's created specifically for game hackers, so it's small and easy to include directly in your code. And if that's not all starting today it will be open source meaning hackers all around the world can share their own code, by adding it to the project. I eventually hope for DPrint to include a much wider variety of typefaces, allow for custom typefaces, and even Multi-lingual fonts instead of just English, but one step at a time. Now I'm going to demonstrate how to use it.
Step 1:Create A DPrint Object
Code:
//********************************************************************************
//funtion: DPrint()
//purpose: Contructs new Dprint object
//********************************************************************************
/*These First three are unimportant, put 0 if you dont want to use*/
DPrint(int startx, //This is important for DPrint::Println see later
int starty, //marks the starting y location for DPrint::Println
int vertical_spacing, //the spacing between each new line also for Println
LPDIRECT3DDEVICE9 pdevice); //You still need a pDevice, but that is all!
Once DPrint is created it will manage all your Fonts for you, plus you can call its helper function to do things like Draw boxes, calculate the length of your printed text, etc. (More Functions to be added)
/*Rect for Location*/ /*Color u want*/ /*Covered this*/ /*Ur text!*/
print->Print(&formatrect, D3DCOLOR_ARGB(255, 0, 0, 255), &Format, "OMG YEAH!");
And your done! Printing in 3 Easy steps and you don't have to worry about all the step afterwards to make sure you delete your old fonts, and saving the pointers for the fonts you use often. DPrint does all of that or it wont do it if you specify you want auto filtering off, this is how it gives advanced users the freedom they want novices the power they need.
Hope this helps someone out there!
Very nice release man..
but why the coders lounge?
oh yea nobody go's to the directx section
Exactly!
Course I'm planning to release the code in the DirectX section, so no one will ever find it. lol. jk, but prbly true :/
Looks very cool, but its just for C++
best commercial ever =3
Deliciously awesome.
Originally Posted by Hell_Demon
best commercial ever =3
Lol. I try
nice release and nice commercial
UPDATE: I've also included a Hello World app, based off of Hell_Demon's code. (Thx HD ) I included it just to give people a chance to try it out without having to create their own code.
@Hassan: sry idk how yet to port any of DirectX to VB, let alone this. =/
wow this is awesome lets see
OMG YEAH!
Looks very good, good job, nice release.
@ Topic of VB and Wrapper. Managed C++ is the solution, if it is managed then we can access public types that are CLS complient, or platform invoke on a dll. Either case, wrapper = great, always
if the library comes with the dll you can import the functions from VB & C#, no problem there
great job why
@ Astral, That's what I said, however it depends on if the wrapper is RCW or CCW , If it is CCW then we will need him to write a RCW for it.
Erm... acronyms RCW? CCW?
TBH, I thought VB could use DirectX, so I never really got why I never see any DirectX hacks programmed in VB. :/
Originally Posted by NextGen1
@ Astral, That's what I said, however it depends on if the wrapper is RCW or CCW , If it is CCW then we will need him to write a RCW for it.
i dont see why that has anything to do with this.
either way, all he has to do is export the functions as a C function ( this way you don't get those annoying characters in the function names ) and import then using GetProcAddress. otherwise known as explicit linking, there shouldnt be a problem at all using these functions in VB