This for you guys. I've been working a couple months on a way to help making using DirectX Easier for nubs and pros and I think this is the solution.
Please try it out, you use it the same as any other library. Try it out if you don't like it you can get you money back!
DPrint -A wrapper for DirectX-
I still have a lot of documenting to do left on the functions, but will get to it soon, probably in a later update. Speaking of updates did I mention its going to be open source? Im releasing the code publicly in a few days, I hope all will join in to help creates MPGH's own little D3D helper function library as well.
This is only version one I have a lot of stuff I want to add to it, but I figured the library has reached the point where its beneficial so I decided to release it now, but I'm planning to add more typefaces, and even allow the addition of custom typefaces. So let me know what you think.
PS: No its not a Menu, but it greatly improves the speed of creating menus, as far as Menus go I have a Project for that in the works too, but that will be released some time later. DPrint was actually formed as a side project of of DMenu, so it should go without saying as DMenu continues to grow so will DPrint. Hopefully by the time of DMenu's release, I can add a lot more functionality to DPrint now that structure's foundation has been laid.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
Thanks allot, Bro
I think I might finish my base / menu generator. This sorta got me motivated.
why06 (01-11-2011)
I mainly hang around Programming sub forum. Anyway I'll be putting out all the sourcecode for it tomorrow. I should probably start checking here more, but I think its kinda annoting there's 10 different hacking sections, one for every game. Since games are so similar I think it would be better if there was just one section for all of them.
Last edited by why06; 01-10-2011 at 08:33 PM.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
ac1d_buRn (01-11-2011)
Great Idea (:
Love it. I commend you
It look nice great work
Direct3D part :
The fact that LPD3DXFont is slow to start with, creating a class around it might make it slower. I do not know your code so I may be wrong but unless u have ur font in a Begin(), Draw(), End() the chances are it is going to be slow
(this also depends on how the user uses it. )
IDEA:
An ENUM for types of font, CD3DFont, D3DxFont, dhFastFont and stuff,( just an idea dont really have to do it )
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
The code's posted so you can look at it if you want, I didn't use sprite for the fonts, but if there's a difference I don't think its noticeable, ofcourse you can download the fonts and see for urself.
About including other fonts, that sounds like a lotta extra work, I've never heard a strong argument for CD3D vs. D3DX, but I thought CD3D was just a wrapper for D3DX.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
topblast (01-17-2011)
Hmmm okay I did a little Googling, and from what I see CD3DFont was a older font class superseded, by ID3DXFONT. It's faster, but not 5 times faster, but from what I see supposedly doesn't support as much, or international languages. Ofcourse most of the imformation I could find was old. Im not sure if there's been any updates to CD3DFONT since 2005.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
GodHack2 (01-17-2011)
my friend this is DirectX 9 aka MY TOWN, As mmbob said ID3DXFont is slower than cD3DFont by some. I take back saying sprites are slow but they are slower that Texture mapping.
But their is a twist using sprites in ur ID3DXFont will increase the speed I dont kno how much but it does increase it some how.
Yes it is an old incomplete Font there is also an other font name dhFastFont. I dont really kno about it because it was build with it own engine but it is around there.
CD3DFont can be updated to Direct3D 9 (like how it was done in hans base) but you will have to do it if u want the most out of it :P
The WinGDI was drop and DirectX became faster but the font is still slower.
Last edited by topblast; 01-17-2011 at 02:37 PM.
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development