mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-09 13:53:58 +00:00
[common] added agnostic function sysinfo_getPageSize
This commit is contained in:
parent
7a96c9fe24
commit
0d29527758
4 changed files with 20 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
B1-90-gc71e5c63ca+1
|
B1-91-g7a96c9fe24+1
|
|
@ -19,3 +19,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
// returns the maximum number of multisamples supported by the system
|
// returns the maximum number of multisamples supported by the system
|
||||||
int sysinfo_gfx_max_multisample();
|
int sysinfo_gfx_max_multisample();
|
||||||
|
|
||||||
|
// returns the page size
|
||||||
|
long sysinfo_getPageSize();
|
|
@ -17,6 +17,7 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
|
|
||||||
int sysinfo_gfx_max_multisample()
|
int sysinfo_gfx_max_multisample()
|
||||||
|
@ -62,3 +63,8 @@ int sysinfo_gfx_max_multisample()
|
||||||
|
|
||||||
return maxSamples;
|
return maxSamples;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long sysinfo_getPageSize()
|
||||||
|
{
|
||||||
|
return sysconf(_SC_PAGESIZE);
|
||||||
|
}
|
|
@ -17,8 +17,17 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
int sysinfo_gfx_max_multisample()
|
int sysinfo_gfx_max_multisample()
|
||||||
{
|
{
|
||||||
//FIXME: Implement this
|
//FIXME: Implement this
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long sysinfo_getPageSize()
|
||||||
|
{
|
||||||
|
SYSTEM_INFO si;
|
||||||
|
GetSystemInfo(&si);
|
||||||
|
return si.dwPageSize;
|
||||||
|
}
|
Loading…
Reference in a new issue