Ok, i ran into a problem.
Im in the process of converting some code to use DarkEngine (better sooner than later
).
In my code i use SetCameraToImage() and pasting it on a plane, but i cant find that in DarkEngine. Making a workaround seems unsafe (free IDs) and it takes up a few extra lines.
this is my workaround code (which i havent tested
):
_planeObj = new DarkPlain(DarkDisplay.ScreenWidth * 2, DarkDisplay.ScreenHeight * 2);
_imgNum = _planeObj.Id;
_internalCam.ColorCameraBackdrop(Color.Black);
_internalCam.PositionCamera(-_camDistance, -_camDistance, -_camDistance);
_internalCam.SetCameraRange(0.5f, _camDistance + _objectSize);
oDBCamera.SetCameraToImage(_internalCam.Id, _imgNum, DarkDisplay.ScreenWidth, DarkDisplay.ScreenHeight);
oDB3D.TextureObject(_planeObj.Id, _imgNum);
I understand that you want to use the name Plain for backwards compatibility, but i kinda got used to the name Plane already ^^
Keep up the good work.
EDIT:
Just thought up a posible solution, ofcorse the final way you wanna do it is all up to you.
My idea is that you can make the SetCameraToImage method to return a new DarkImage object:
DarkCamera myCam = new DarkCamera();
DarkImage myImage = myCam.SetCameraToImage(int width, int height);
Proud member of The Unforgiven Warriors
http://www.tuwguild.com