Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated display list manager to support custom primitive types #19

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/ps2gl/dlgmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CDListGeomManager : public CGeomManager {
CDListGeomManager(CGLContext& context);
virtual ~CDListGeomManager() {}

void PrimChanged(unsigned char prim);
void PrimChanged(GLenum prim);

// user state

Expand Down
6 changes: 3 additions & 3 deletions src/dlgmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,10 @@ class CUpdateRendererContextCmd : public CDListCmd {
};

class CUpdatePrimCmd : public CDListCmd {
unsigned char Prim;
GLenum Prim;

public:
CUpdatePrimCmd(unsigned char prim)
CUpdatePrimCmd(GLenum prim)
: Prim(prim)
{
}
Expand All @@ -352,7 +352,7 @@ class CUpdatePrimCmd : public CDListCmd {
}
};

void CDListGeomManager::PrimChanged(unsigned char prim)
void CDListGeomManager::PrimChanged(GLenum prim)
{
GLContext.PrimChanged();
GLContext.GetDListManager().GetOpenDList() += CUpdatePrimCmd(prim);
Expand Down