Hi.
I have seeing a litlebit how the engine generates the meshes and loads the materials, and in the source is very common use IImage before set the it to the material.Texture1, i have looked the IImage source and it have a lot of interesting functions that dont have any declaration on the Includes files, so, i cant use this functions in my game and i am very VERY limited to get a little bit of info about the image and i cant resize, draw stuffs in the image, and do anything, so im missing something?
i have looked too to the ITexture includes and dont have any function to edit that, and i cant find the source. Where is it?
I only need an image that i can manipulate, and IImage in the sources look fine for me. but i cant use this functions without make changes to the engine.
another question:
Maybe in the future i will need save images to disk and the quetions is: there is no plans to make a class like ImageWriter or something?
thanks.
why IImage dont have resizeTo function in the includes?
I tried to keep the IImage interface as simple as possible, because if someone wants to add a new IImageLoader for loading new file formats, and maybe is also implementing his own IImage class, he does not have to implement all these methods.
I've plans for writing out images, specially for screenshots. But this could take a while.
I've plans for writing out images, specially for screenshots. But this could take a while.
extremely simple, if you ask me. I think that in this case so much simplicity reduces the versatility.
so, the way to solve my problem is make an IImage class with the functions that i need.
i have other question:
the class CImage inherits of IImage, CImage is the source and IImage the include, but if i make a class that inherits of IImage i need to rewrite or copy all the code that i want of CImage, im duplicating code, and i cant use CImage in my application becouse it dont have his own include. The other way of course is modify the engine but it smash the easy transportability.
resuming, i have 2 ways, copy CImage to my application or modify the engine.
thanks.
so, the way to solve my problem is make an IImage class with the functions that i need.
i have other question:
the class CImage inherits of IImage, CImage is the source and IImage the include, but if i make a class that inherits of IImage i need to rewrite or copy all the code that i want of CImage, im duplicating code, and i cant use CImage in my application becouse it dont have his own include. The other way of course is modify the engine but it smash the easy transportability.
resuming, i have 2 ways, copy CImage to my application or modify the engine.
thanks.