Skip to content

Add support for HD cams.#1344

Open
mlgthatsme wants to merge 39 commits into
AliveTeam:masterfrom
mlgthatsme:opengl
Open

Add support for HD cams.#1344
mlgthatsme wants to merge 39 commits into
AliveTeam:masterfrom
mlgthatsme:opengl

Conversation

@mlgthatsme
Copy link
Copy Markdown
Member

No description provided.


bool DirectX9Renderer::Create(TWindowHandleType window)
{
rendererType = Renderers::DirectX9;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't used anywhere

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how are we supposed to tell what renderer the user would be using? how would you approach that?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use polymorphic calls to abstract it out - e.g Create is a virtual call so DirectX9Renderer::Create know its the directx impl. If something outside of the object using the base type needs to know this then its probably leaking implementation details.

But its not even used currently so its dead code anyway.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright. done.

}

void DirectX9Renderer::LoadCustomCAM(const char* /*path*/, const unsigned char* /*key*/, int /*keyLength*/)
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should prob log it isn't implemented with LOG_WARNING

}

void SoftwareRenderer::LoadCustomCAM(const char* /*path*/, const unsigned char* /*key*/, int /*keyLength*/)
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should prob log it isn't implemented with LOG_WARNING

Comment thread Source/AliveLibAE/ScreenManager.cpp Outdated
UnsetDirtyBits_40EDE0(2);
UnsetDirtyBits_40EDE0(3);

static char camName[12] = {};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant static


virtual void Upload(BitDepth bitDepth, const PSX_RECT& rect, const u8* pPixels) = 0;

virtual void LoadCustomCAM(const char* path, const unsigned char* key, int keyLength) = 0;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't "Custom" really be "External" or something "custom" and "data" is super generic name

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah fair

@mouzedrift
Copy link
Copy Markdown
Member

just for tracking purpose - hd cams dont work on some specific hardware (intel hd graphics 4600 in my case)
image

@mlgthatsme
Copy link
Copy Markdown
Member Author

just for tracking purpose - hd cams dont work on some specific hardware (intel hd graphics 4600 in my case) image

just fixed this, will commit now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants