../../../../../lib/libEGL.so
LIBS_D3D10 = ../dxgid3d10/libdxgid3d10.a ../gd3d10/libgd3d10.a $(LIBS)
LIBS_D3D11 = ../dxgid3d11/libdxgid3d11.a ../gd3d11/libgd3d11.a $(LIBS)
-LDADD=-lGL -lXext -lXfixes -lX11 -ldrm -ldl
+LDADD=-lXext -lXfixes -lX11 -ldrm -ldl
all: bin/d3d10tri bin/d3d11tri bin/d3d11tex bin/d3d11gears
include ../Makefile.inc
\r
#include "d3d10app.h"\r
#include <X11/Xlib.h>\r
-#include <GL/glx.h>\r
#include <galliumdxgi.h>\r
#include <sys/time.h>\r
\r
static ID3D10Device* dev;\r
static ID3D10Device* ctx;\r
\r
-static int attributeList[] = {\r
- GLX_RGBA,\r
- GLX_RED_SIZE, 8,\r
- GLX_GREEN_SIZE, 8,\r
- GLX_BLUE_SIZE, 8,\r
- None\r
-};\r
-\r
double get_time()\r
{\r
struct timeval tv;\r
int main(int argc, char** argv)\r
{\r
Display* dpy = XOpenDisplay(0);\r
- XVisualInfo* vi = glXChooseVisual(dpy, DefaultScreen(dpy), attributeList);\r
- Colormap cmap = XCreateColormap(dpy, RootWindow(dpy, vi->screen), vi->visual, AllocNone);\r
+ Visual* visual = DefaultVisual(dpy, DefaultScreen(dpy));\r
+ Colormap cmap = XCreateColormap(dpy, RootWindow(dpy, DefaultScreen(dpy)), visual, AllocNone);\r
XSetWindowAttributes swa;\r
swa.colormap = cmap;\r
swa.border_pixel = 0;\r
swa.event_mask = StructureNotifyMask;\r
width = 512;\r
height = 512;\r
- Window win = XCreateWindow(dpy, RootWindow(dpy, vi->screen), 0, 0, width, height, 0, vi->depth, InputOutput, vi->visual, CWBorderPixel | CWColormap| CWEventMask, &swa);\r
+ Window win = XCreateWindow(dpy, RootWindow(dpy, DefaultScreen(dpy)), 0, 0, width, height, 0, CopyFromParent, InputOutput, visual, CWBorderPixel | CWColormap| CWEventMask, &swa);\r
XMapWindow(dpy, win);\r
\r
GalliumDXGIUseX11Display(dpy, 0);\r
#include "d3d11app.h"\r
#include <X11/Xlib.h>\r
-#include <GL/glx.h>\r
#include <galliumdxgi.h>\r
#include <sys/time.h>\r
\r
static ID3D11Device* dev;\r
static ID3D11DeviceContext* ctx;\r
\r
-static int attributeList[] = {\r
- GLX_RGBA,\r
- GLX_RED_SIZE, 8,\r
- GLX_GREEN_SIZE, 8,\r
- GLX_BLUE_SIZE, 8,\r
- None\r
-};\r
-\r
double get_time()\r
{\r
struct timeval tv;\r
int main(int argc, char** argv)\r
{\r
Display* dpy = XOpenDisplay(0);\r
- XVisualInfo* vi = glXChooseVisual(dpy, DefaultScreen(dpy), attributeList);\r
- Colormap cmap = XCreateColormap(dpy, RootWindow(dpy, vi->screen), vi->visual, AllocNone);\r
+ Visual* visual = DefaultVisual(dpy, DefaultScreen(dpy));\r
+ Colormap cmap = XCreateColormap(dpy, RootWindow(dpy, DefaultScreen(dpy)), visual, AllocNone);\r
XSetWindowAttributes swa;\r
swa.colormap = cmap;\r
swa.border_pixel = 0;\r
swa.event_mask = StructureNotifyMask;\r
width = 512;\r
height = 512;\r
- Window win = XCreateWindow(dpy, RootWindow(dpy, vi->screen), 0, 0, width, height, 0, vi->depth, InputOutput, vi->visual, CWBorderPixel | CWColormap| CWEventMask, &swa);\r
+ Window win = XCreateWindow(dpy, RootWindow(dpy, DefaultScreen(dpy)), 0, 0, width, height, 0, CopyFromParent, InputOutput, visual, CWBorderPixel | CWColormap| CWEventMask, &swa);\r
XMapWindow(dpy, win);\r
\r
GalliumDXGIUseX11Display(dpy, 0);\r