mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-20 15:49:22 +00:00
enable screenshots with F12
This commit is contained in:
parent
031195f11d
commit
879838c9f2
5 changed files with 53 additions and 1 deletions
|
@ -947,6 +947,43 @@ RtBMPImageRead(const RwChar *imageName)
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
RwImage *
|
||||
RtPNGImageWrite(RwImage *image, const RwChar *imageName)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
char *r = casepath(imageName);
|
||||
if (r) {
|
||||
rw::writePNG(image, r);
|
||||
free(r);
|
||||
} else {
|
||||
rw::writePNG(image, imageName);
|
||||
}
|
||||
|
||||
#else
|
||||
rw::writePNG(image, imageName);
|
||||
#endif
|
||||
return image;
|
||||
}
|
||||
RwImage *
|
||||
RtPNGImageRead(const RwChar *imageName)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
RwImage *image;
|
||||
char *r = casepath(imageName);
|
||||
if (r) {
|
||||
image = rw::readPNG(r);
|
||||
free(r);
|
||||
} else {
|
||||
image = rw::readPNG(imageName);
|
||||
}
|
||||
return image;
|
||||
|
||||
#else
|
||||
return rw::readPNG(imageName);
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "rtquat.h"
|
||||
|
||||
RtQuat *RtQuatRotate(RtQuat * quat, const RwV3d * axis, RwReal angle, RwOpCombineType combineOp) { return (RtQuat*)((rw::Quat*)quat)->rotate(axis, angle/180.0f*3.14159f, (CombineOp)combineOp); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue