reimpl get color buffer func
just in case
This commit is contained in:
parent
2a7ecf5237
commit
dce242435c
9
src/external/rlsw.h
vendored
9
src/external/rlsw.h
vendored
|
|
@ -454,6 +454,7 @@ void swClose(void);
|
|||
|
||||
bool swResizeFramebuffer(int w, int h);
|
||||
void swCopyFramebuffer(int x, int y, int w, int h, SWformat format, SWtype type, void* pixels);
|
||||
void* swGetColorBuffer(int* w, int* h);
|
||||
|
||||
void swEnable(SWstate state);
|
||||
void swDisable(SWstate state);
|
||||
|
|
@ -3211,6 +3212,14 @@ void swCopyFramebuffer(int x, int y, int w, int h, SWformat format, SWtype type,
|
|||
}
|
||||
}
|
||||
|
||||
void* swGetColorBuffer(int* w, int* h)
|
||||
{
|
||||
if (w) *w = RLSW.framebuffer.width;
|
||||
if (h) *h = RLSW.framebuffer.height;
|
||||
|
||||
return RLSW.framebuffer.color;
|
||||
}
|
||||
|
||||
void swEnable(SWstate state)
|
||||
{
|
||||
switch (state) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user