Skip to content

Instantly share code, notes, and snippets.

View computerquip's full-sized avatar
🕳️

Zachary L computerquip

🕳️
  • San Antonio, TX
View GitHub Profile
diff --git a/src/voglcore/vogl_port.h b/src/voglcore/vogl_port.h
index 7a718b3..4b53a1b 100644
--- a/src/voglcore/vogl_port.h
+++ b/src/voglcore/vogl_port.h
@@ -29,6 +29,7 @@
// The guts of those functions live in the platform-specific CPP files.
#pragma once
+#include "vogl_threading.h"
#include "vogl_core.h"
diff --git a/src/voglcore/vogl_port_posix.cpp b/src/voglcore/vogl_port_posix.cpp
index 0df14e4..a911059 100644
--- a/src/voglcore/vogl_port_posix.cpp
+++ b/src/voglcore/vogl_port_posix.cpp
@@ -37,11 +37,42 @@
#include <sys/mman.h>
#include <sys/syscall.h>
#include <sys/time.h>
+#include <map>
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp: In member function ‘virtual void Magnum::Trade::AbstractImporter::doOpenFile(const string&)’:
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp:80:50: error: no matching function for call to ‘Magnum::Trade::AbstractImporter::doOpenData(Corrade::Containers::Array<unsigned char>)’
doOpenData(Utility::Directory::read(filename));
^
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp:80:50: note: candidate is:
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp:61:6: note: virtual void Magnum::Trade::AbstractImporter::doOpenData(Corrade::Containers::ArrayReference<const char>)
void AbstractImporter::doOpenData(Containers::ArrayReference<const char>) {
^
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp:61:6: note: no known conversion for argument 1 from ‘Corrade::Containers::Array<unsigned ch
@computerquip
computerquip / gist:efc53e7bd010f2e8e75f
Last active August 29, 2015 14:05
Xbox 360 Wired Controller driver using libusb-modified
#include <stdio.h>
#include <stdlib.h>
#include <libusb-1.0/libusb.h>
#include <linux/uinput.h>
#if defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION < 0x01000102)
#error This driver requires hotplug support. libusb headers indicate the version you have is not new enough.
#endif
struct xpad360_controller {
/* This file is to be compiled only on X86 systems.
The build system should figure this out for us.
reg[4] represent the registers eax, ebx, ecx, and edx respectively. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#if defined (__clang__) || (__GNUC__)
#include <cpuid.h>
include <stdio.h>
// Prototype the functions
int CheckEndOfGame(int * squares);
int ChooseSquare(int * squares);
int MakeMoves(int * ctrMoves, int * playr, int * squares);
int main()
{ /* High Level - play one or more games:
Players make moves until one wins or it's a draw.
@computerquip
computerquip / gist:7478314
Created November 15, 2013 02:45
System Info #2
Processor Information:
Vendor: AuthenticAMD
CPU Family: 0x15
CPU Model: 0x2
CPU Stepping: 0x0
CPU Type: 0x0
Speed: 4000 Mhz
8 logical processors
8 physical processors
HyperThreading: Unsupported
Processor Information:
Vendor: AuthenticAMD
Speed: 4000 Mhz
8 logical processors
8 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported