Decompile fn_02306 (CreateTextureDX7)
Batch #8003 by pedrao: 0 byte-identical, 1 confirmed by peer review. - fn_02306 CreateTextureDX7: logic confirmed by peer review Peer-reviewed-by: eAthena, secret Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
5f0f10fe4f
commit
f592ac17e5
2 changed files with 12 additions and 1 deletions
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include <climits>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <new>
|
||||
|
||||
namespace {
|
||||
// STATIC: 0x01387270
|
||||
|
|
@ -104,6 +106,12 @@ CTextureDX7::CTextureDX7(TextureDX7Context& context, int width, int height, int
|
|||
this->SetImageSize(width, height);
|
||||
}
|
||||
|
||||
// OFFSET: 0x0056AF60
|
||||
// FUNCTION: fn_02306
|
||||
std::unique_ptr<CTextureDX7> CreateTextureDX7(TextureDX7Context*& context) {
|
||||
return std::unique_ptr<CTextureDX7>(new CTextureDX7(*context));
|
||||
}
|
||||
|
||||
// OFFSET: 0x00543DC0
|
||||
// OFFSET: 0x00543E30
|
||||
// FUNCTION: fn_01809
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#include "Render/DX7/TextureAllocationDX7.h"
|
||||
|
||||
#include <ddraw.h>
|
||||
#include <memory>
|
||||
|
||||
class DeviceOwnerDX7;
|
||||
class CRenderSystemBase;
|
||||
|
|
@ -22,7 +23,7 @@ struct TextureDX7Context {
|
|||
|
||||
class CTextureDX7 : public CTexture {
|
||||
public:
|
||||
explicit CTextureDX7(TextureDX7Context& context);
|
||||
__declspec(noinline) explicit CTextureDX7(TextureDX7Context& context);
|
||||
CTextureDX7(TextureDX7Context& context, int width, int height, int format);
|
||||
~CTextureDX7() override;
|
||||
bool Resize(int width, int height) override;
|
||||
|
|
@ -51,4 +52,6 @@ protected:
|
|||
TextureDX7Context* m_context;
|
||||
};
|
||||
|
||||
std::unique_ptr<CTextureDX7> CreateTextureDX7(TextureDX7Context*& context);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue