code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
struct _osw {
int dummy;
};
struct _osc {
int dummy;
};
struct _osg {
int dummy;
};
struct _osp {
int dummy;
};
| zzywany123-libaw-1 | awios.h | C | bsd | 119 |
#if !defined __OBJC__
typedef struct _View View;
typedef struct _Window Window;
typedef struct _NSCursor NSCursor;
typedef struct _NSOpenGLContext NSOpenGLContext;
#endif
struct _osg {
int dummy;
};
struct _osw {
View * view;
Window * win;
NSCursor * defcur;
int _vfreed;
int _... | zzywany123-libaw-1 | awcocoa.h | C | bsd | 459 |
#include <windows.h>
void * awosSelf() {
HMODULE ret;
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,
(LPCSTR)awosSelf, &ret);
return ret;
}
void * awosResolve(void * in, const char * name) {
return GetProcAddress(in, name);
}
const char * awosModPath() {
static char buf[256];
GetModuleFileNam... | zzywany123-libaw-1 | awntresolve.c | C | bsd | 368 |
#include "awnpapios.h"
#include <stdlib.h>
@interface Layer : CAOpenGLLayer {
@public
CFTimeInterval lastdraw;
}
- (void)drawInCGLContext:(CGLContextObj)ct
pixelFormat:(CGLPixelFormatObj)pf
forLayerTime:(CFTimeInterval)lt
displayTime:(const CVTimeStamp *)dt;
- (BOOL)canDrawInCGLContext:(CGLContextO... | zzywany123-libaw-1 | awcocoanpapi.m | Objective-C | bsd | 4,600 |
#-*-Python-*-
Import('env')
aw = env.ForLib()
aw.UsesOpenGL()
backend = {
'android' : 'awandroid.c ',
'iphone' : 'awiphone.m co.c coroutine/source/Coro.c awreportfile.c tlspthread.c',
'cocoa': 'awcocoa.m awmackeycodes.c awreportconsole.c',
'x11': 'awmain.c awx.c awx11keycodes.c awreportconsole.c',
'nt': 'awmain.c aww.c... | zzywany123-libaw-1 | SConscript | Python | bsd | 2,356 |
#define CURSOR_WIDTH 32
#define CURSOR_HEIGHT 32
#define CURSOR_BYTES (4*CURSOR_WIDTH*CURSOR_HEIGHT)
#define MAX_WINDOWS 256
#define MAX_EVENTS 1024
#define MAX_PRESSED 256
#if defined _WIN32
#include "aww.h"
#elif defined __ANDROID__
#include "awandroid.h"
#elif defined __IPHONE_OS_VERSION_MIN_REQUIRED
#include "awio... | zzywany123-libaw-1 | awos.h | C | bsd | 2,553 |
/*
Copyright (c) 2008-2009, Jorge Acereda Maciá
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | zzywany123-libaw-1 | aww.c | C | bsd | 11,184 |
/*
Copyright (c) 2008-2009, Jorge Acereda Maciá
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | zzywany123-libaw-1 | awcocoa.m | Objective-C | bsd | 18,773 |
/*
Copyright (c) 2008-2009, Jorge Acereda Maciá
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | zzywany123-libaw-1 | aw.c | C | bsd | 18,209 |
import os
import os.path
import string
import SCons.Action
import SCons.Builder
import SCons.Tool
import SCons.Util
def generate(env):
sdkprefix = \
'/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/'
gnu_tools = ['gcc', 'g++', 'applelink', 'ar', 'gas']
for tool in gnu_tools:
SCons... | zzywany123-libaw-1 | iphone.py | Python | bsd | 1,059 |
#-*-Python-*-
import sys
import os
domain = ARGUMENTS.get('domain', 'com.example')
backends = []
tools = 0
target = ARGUMENTS.get('target', 'native')
if target == 'native':
target = sys.platform
elif target == 'iphone':
tools = 'iphone'
elif target == 'iphonesim':
tools = 'iphonesim'
elif target == 'android':
t... | zzywany123-libaw-1 | SConstruct | Python | bsd | 8,034 |
#include <windows.h>
#include <wingdi.h>
#include <windowsx.h>
#include "aw.h"
#include "awos.h"
#if !defined HANDLE_WM_MOUSEWHEEL
#define HANDLE_WM_MOUSEWHEEL(hwnd,wParam,lParam,fn) ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(int)(short)HIWORD(wParam),(UINT)(short)LOWORD(wParam)),0L)
#endif
o... | zzywany123-libaw-1 | awntevent.c | C | bsd | 7,773 |
#include <X11/Xlib.h>
#include <GL/glx.h>
struct _osg {
Display * dpy;
int screen;
XIM xim;
Atom del;
int(*swapInterval)(int);
int bw, bh;
};
struct _osw {
Window win;
int lastw, lasth;
int lastx, lasty;
XIC xic;
};
struct _osc {
... | zzywany123-libaw-1 | awx.h | C | bsd | 370 |
#include <windows.h>
#include <wingdi.h>
#include <windowsx.h>
struct _osg {
HANDLE ready;
HANDLE thread;
HWND win;
WCHAR appname[256];
};
struct _osw {
HWND win;
DWORD style;
};
struct _osc {
HGLRC ctx;
};
struct _osp {
HCURSOR icon;
};
| zzywany123-libaw-1 | aww.h | C | bsd | 306 |
#include "aw.h"
unsigned mapkeycode(unsigned k) {
unsigned ret;
switch (k) {
case 9: ret = AW_KEY_ESCAPE; break;
case 10: ret = AW_KEY_1; break;
case 11: ret = AW_KEY_2; break;
case 12: ret = AW_KEY_3; break;
case 13: ret = AW_KEY_4; break;
case 14: ret = AW_KEY_5; break;
case 15: ret = AW_KEY_6... | zzywany123-libaw-1 | awx11keycodes.c | C | bsd | 4,539 |
/*
Copyright (c) 2008-2009, Jorge Acereda Maciá
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | zzywany123-libaw-1 | awx.c | C | bsd | 11,598 |
import os
import os.path
import string
import SCons.Action
import SCons.Builder
import SCons.Tool
import SCons.Util
def generate(env):
sdkprefix = \
'/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/'
gnu_tools = ['gcc', 'g++', 'applelink', 'ar', 'gas']
for tool in gnu_tools:
... | zzywany123-libaw-1 | iphonesim.py | Python | bsd | 1,047 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (c) 2004, Apple Computer, Inc. and The Mozilla Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | zzywany123-libaw-1 | npapi/npruntime.h | C | bsd | 17,537 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... | zzywany123-libaw-1 | npapi/npapi.h | C | bsd | 23,038 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... | zzywany123-libaw-1 | npapi/npfunctions.h | C | bsd | 13,839 |
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... | zzywany123-libaw-1 | npapi/nptypes.h | C | bsd | 3,689 |
typedef struct _co co;
co * coMain(void *);
co * coNew(void (*)(void*), void *);
void coDel(co *);
void coSwitchTo(co *);
co * coCurrent();
void * coData(co *);
| zzywany123-libaw-1 | co.h | C | bsd | 161 |
#include "awnpapios.h"
#include <stdlib.h>
#include <X11/X.h>
#include <GL/glx.h>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
struct _ins {
insHeader h;
Window w;
Display * dpy;
GLXContext ctx;
GtkWidget * plug;
guint to;
};
ins * awosNew(NPNetscapeFu... | zzywany123-libaw-1 | awxembednpapi.c | C | bsd | 4,999 |
#include <CoreServices/CoreServices.r>
resource 'STR#' (126, "Description") { { "NAME", "NAME" } };
resource 'STR#' (127, "MIME type description") { { "NAME" } };
resource 'STR#' (128, "MIME type") { { "application/NAME" } };
| zzywany123-libaw-1 | template.r | R | bsd | 227 |
#include <assert.h>
#include <string.h>
#include "awnpapios.h"
typedef void (*awmethod)(void);
static NPNetscapeFuncs * s_browser = 0;
static NPObject * s_so = 0;
static char s_plgname[256];
static awmethod resolve(NPIdentifier method) {
static void * me = 0;
char * mname = s_browser->utf8fromidentifier(method);
... | zzywany123-libaw-1 | awnpapi.c | C | bsd | 7,293 |
<html>
<head>
<title>aw plugin test</title>
</head>
<body>
<center>
<object id="awplugin" type="application/awplugin" width=640 height=480>
</object><br>
<button onclick="document['awplugin'].hello('world');">hello</button>
</center>
</body>
</html>
| zzywany123-libaw-1 | test.html | HTML | bsd | 300 |
#include <windows.h>
#include "aw.h"
#if !defined MAPVK_VK_TO_CHAR
#define MAPVK_VK_TO_CHAR 2
#endif
#if !defined VK_OEM_PLUS
#define VK_OEM_PLUS 0xbb
#endif
#if !defined VK_OEM_COMMA
#define VK_OEM_COMMA 0xbc
#endif
#if !defined VK_OEM_MINUS
#define VK_OEM_MINUS 0xbd
#endif
#if !defined VK_OEM_PERIOD
#define VK_O... | zzywany123-libaw-1 | awntkeycodes.c | C | bsd | 6,520 |
#include <pthread.h>
#include <stdlib.h>
#include "aw.h"
#include "awos.h"
#include "tls.h"
struct _tls {
pthread_key_t key;
};
tls * tlsNew() {
tls * tls = malloc(sizeof(*tls));
pthread_key_create(&tls->key, 0);
debug("created key %d", (int)tls->key);
return tls;
}
void * tlsGet(tls * tls) {
void * ret;
ret ... | zzywany123-libaw-1 | tlspthread.c | C | bsd | 534 |
#define _GNU_SOURCE
#include <dlfcn.h>
#include <stdio.h>
#include <string.h>
void * awosSelf(const char * name) {
char buf[256];
snprintf(buf, sizeof buf - 1, "lib%s.so", name);
return dlopen(buf, 0);
}
void * awosResolve(void * in, const char * name) {
return dlsym(in, name);
}
const char * awosM... | zzywany123-libaw-1 | awposixresolve.c | C | bsd | 550 |
#include <stdarg.h>
#include <stdio.h>
void report(const char *fmt, ...) {
#if defined(_WIN32)
FILE *out = fopen("aw.log", "a");
#else
FILE *out = fopen("/tmp/aw.log", "a");
#endif
va_list ap;
va_start(ap, fmt);
if(out) {
vfprintf(out, fmt, ap);
fputs("\n", out);
fclose(out);
}
va_end(ap);
}
| zzywany123-libaw-1 | awreportfile.c | C | bsd | 309 |
#include <stdarg.h>
#include <stdio.h>
void report(const char * fmt, ...) {
va_list ap;
va_start(ap, fmt);
fprintf(stderr, "AW ERROR: ");
vfprintf(stderr, fmt, ap);
va_end(ap);
fprintf(stderr, "\n");
fflush(stderr);
}
| zzywany123-libaw-1 | awreportconsole.c | C | bsd | 276 |
#define setcontext(u) setmcontext(&(u)->uc_mcontext)
#define getcontext(u) getmcontext(&(u)->uc_mcontext)
typedef struct mcontext mcontext_t;
typedef struct ucontext ucontext_t;
extern int swapcontext(ucontext_t*, const ucontext_t*);
extern void makecontext(ucontext_t*, void(*)(void), int, ...);
extern int getmcon... | zzywany123-libaw-1 | coroutine/source/amd64-ucontext.h | C | bsd | 5,114 |
/* Copyright (c) 2005-2006 Russ Cox, MIT; see COPYRIGHT */
#include "taskimpl.h"
#if defined(__APPLE__)
#if defined(__i386__)
#define NEEDX86MAKECONTEXT
#define NEEDSWAPCONTEXT
#elif defined(__x86_64__)
#define NEEDAMD64MAKECONTEXT
#define NEEDSWAPCONTEXT
#else
#define NEEDPOWERMAKECONTEXT
#define NEEDSWAPCONTEXT
#en... | zzywany123-libaw-1 | coroutine/source/context.c | C | bsd | 2,561 |
#ifndef TASKIMPL_DEFINED
#define TASKIMPL_DEFINED 1
#include <stdarg.h>
/* Copyright (c) 2005-2006 Russ Cox, MIT; see COPYRIGHT */
#if defined(__sun__)
# define __EXTENSIONS__ 1 /* SunOS */
# if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__)
/* NOT USING #define __MAKECONTEXT_V2_SOURCE 1 /... | zzywany123-libaw-1 | coroutine/source/taskimpl.h | C | bsd | 4,021 |
/*
Credits
Originally based on Edgar Toernig's Minimalistic cooperative multitasking
http://www.goron.de/~froese/
reorg by Steve Dekorte and Chis Double
Symbian and Cygwin support by Chis Double
Linux/PCC, Linux/Opteron, Irix and FreeBSD/Alpha, ucontext support by Austin Kurahone
FreeBSD/Intel support by Faried... | zzywany123-libaw-1 | coroutine/source/Coro.c | C | bsd | 19,519 |
#define setcontext(u) _setmcontext(&(u)->mc)
#define getcontext(u) _getmcontext(&(u)->mc)
typedef struct mcontext mcontext_t;
typedef struct ucontext ucontext_t;
struct mcontext
{
ulong pc; /* lr */
ulong cr; /* mfcr */
ulong ctr; /* mfcr */
ulong xer; /* mfcr */
ulong sp; /* callee saved: r1 */
ulong toc; ... | zzywany123-libaw-1 | coroutine/source/power-ucontext.h | C | bsd | 945 |
/* Copyright (c) 2005-2006 Russ Cox, MIT; see COPYRIGHT */
#if defined(__FreeBSD__) && defined(__i386__) && __FreeBSD__ < 5
#define NEEDX86CONTEXT 1
#define SET setmcontext
#define GET getmcontext
#endif
#if defined(__OpenBSD__) && defined(__i386__)
#define NEEDX86CONTEXT 1
#define SET setmcontext
#define GET getmcon... | zzywany123-libaw-1 | coroutine/source/asm.S | Unix Assembly | bsd | 4,769 |
/*
*/
#ifndef CORO_DEFINED
#define CORO_DEFINED 1
//#include "Common.h"
//#include "PortableUContext.h"
//#include "taskimpl.h"
#if defined(_WIN32)
typedef unsigned size_t;
typedef unsigned char uint8_t;
#else
#include <sys/types.h>
#include <stdint.h>
#endif
#if defined(__SYMBIAN32__)
#define CORO_STACK_SIZE 81... | zzywany123-libaw-1 | coroutine/source/Coro.h | C | bsd | 2,675 |
#define setcontext(u) setmcontext(&(u)->uc_mcontext)
#define getcontext(u) getmcontext(&(u)->uc_mcontext)
typedef struct mcontext mcontext_t;
typedef struct ucontext ucontext_t;
extern int swapcontext(ucontext_t*, const ucontext_t*);
extern void makecontext(ucontext_t*, void(*)(void), int, ...);
extern int getmcont... | zzywany123-libaw-1 | coroutine/source/386-ucontext.h | C | bsd | 4,600 |
<!--#include virtual="/menu.cgi?path=/projects/opensource/libCoroutine/docs" -->
<UL>
<table cellpadding=0 cellspacing=0 border=0 width=90%>
<tr>
<td>
<h2>Overview</h2>
libCoroutine is a simple stackfull coroutine implementation. On unix platforms, the implementation uses ucontext if available or with set... | zzywany123-libaw-1 | coroutine/docs/index.html | HTML | bsd | 3,039 |
include ./Makefile.lib
CFLAGS += -DBUILDING_CORO_DLL $(IOVMALLFLAGS)
# Manually control which coro implementation to use
#CFLAGS += -DUSE_UCONTEXT # preferred on OSX, Linux and friends
#CFLAGS += -DUSE_FIBERS # preferred on Windows
#CFLAGS += -DUSE_SETJMP # method of last resort
| zzywany123-libaw-1 | coroutine/Makefile | Makefile | bsd | 286 |
twoCoroTest: twoCoroTest.c
$(CC) -I../../basekit/_build/headers -I../_build/headers -L../_build/lib -o $@ $< -lcoroutine
| zzywany123-libaw-1 | coroutine/samples/Makefile | Makefile | bsd | 123 |
#include "Coro.h"
#include <stdio.h>
Coro *firstCoro, *secondCoro;
void secondTask(void *context)
{
int num = 0;
printf("secondTask created with value %d\n", *(int *)context);
while (1)
{
printf("secondTask: %d %d\n", (int)Coro_bytesLeftOnStack(secondCoro), num++);
Coro_switchTo_(secondCoro, firstCoro);
... | zzywany123-libaw-1 | coroutine/samples/twoCoroTest.c | C | bsd | 883 |
"""SCons.Tool.gcc
Tool-specific initialization for MinGW (http://www.mingw.org/)
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation
#
# Permission i... | zzywany123-libaw-1 | crossmingw.py | Python | bsd | 6,513 |
/*
Copyright (c) 2008-2010, Jorge Acereda Maciá
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | zzywany123-libaw-1 | awiphone.m | Objective-C | bsd | 8,949 |
#include "awnpapios.h"
#include <stdlib.h>
#include <windows.h>
#include <windowsx.h>
struct _ins {
insHeader h;
WNDPROC oldproc;
};
static void setPF(HDC dc) {
PIXELFORMATDESCRIPTOR pfd = {
sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd
1, // vers... | zzywany123-libaw-1 | awntnpapi.c | C | bsd | 3,657 |
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1006
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
| zzywany123-libaw-1 | resource.h | C | bsd | 251 |
#include <sys/types.h>
#include "co.h"
#include "aw.h"
#include "awos.h"
#if defined __APPLE__
#define NP_NO_CARBON
#include <WebKit/npapi.h>
#include <WebKit/npfunctions.h>
#include <QuartzCore/QuartzCore.h>
#else
#include <npapi.h>
#include <npfunctions.h>
#endif
struct _aw {
awHeader hdr;
void * handle;
};... | zzywany123-libaw-1 | awnpapios.h | C | bsd | 1,003 |
#include <Carbon/Carbon.h> // For keycodes
#include "aw.h"
unsigned mapkeycode(unsigned k) {
unsigned ret;
switch (k) {
case kVK_ANSI_A: ret = AW_KEY_A; break;
case kVK_ANSI_S: ret = AW_KEY_S; break;
case kVK_ANSI_D: ret = AW_KEY_D; break;
case kVK_ANSI_F: ret = AW_KEY_F; break;
case kVK_ANSI_H: ret = AW_KEY_H;... | zzywany123-libaw-1 | awmackeycodes.c | C | bsd | 5,350 |
#if !defined(__APPLE__) || AWBACKEND != cocoa
#include <GL/glu.h>
#else
#include <OpenGL/glu.h>
#endif
| zzywany123-libaw-1 | sysglu.h | C | bsd | 104 |
#if !defined _AWTYPES_H_
#define _AWTYPES_H_
typedef struct _ag ag;
typedef struct _aw aw;
typedef struct _ac ac;
typedef struct _ap ap;
typedef struct _ae ae;
#endif
| zzywany123-libaw-1 | awtypes.h | C | bsd | 167 |
/* Adapted from the Red Book */
#include <stdarg.h>
#include <stdio.h>
#include <aw/sysgl.h>
#include <aw/sysglu.h>
#include <aw/aw.h>
#include "log.h"
static void reshape(int w, int h) {
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
glMatrixMode(G... | zzywany123-libaw-1 | test/hello.c | C | bsd | 774 |
/* Adapted from the Red Book */
#include <stdarg.h>
#include <stdio.h>
#include <aw/sysgl.h>
#include <aw/sysglu.h>
#include <aw/aw.h>
#include "log.h"
static int shoulder = 0, elbow = 0;
static void
drawBox(GLfloat size, GLenum type)
{
static GLfloat n[6][3] =
{
{-1.0, 0.0, 0.0},
{0.0, 1.0, 0.0},
{1.0, ... | zzywany123-libaw-1 | test/robot.c | C | bsd | 2,809 |
#include <stdarg.h>
#include <stdio.h>
#if defined AWPLUGIN
extern void report(const char * fmt, ...);
#define Log report
#else
static void Log(const char * fmt, ...) {
va_list ap;
va_start(ap, fmt);
vprintf(fmt, ap);
printf("\n");
fflush(stdout);
va_end(ap);
}
#endif
/*
Local variables: **
c-file-style: ... | zzywany123-libaw-1 | test/log.h | C | bsd | 367 |
#include <aw/sysgl.h>
#include <aw/aw.h>
#include "log.h"
static GLuint loadShader(GLenum type, const char * src)
{
GLuint sh = glCreateShader(type);
glShaderSource(sh, 1, &src, NULL);
glCompileShader(sh);
return sh;
}
static GLuint g_prg;
static GLint g_time;
static void init(void)
{
const char vss[] =
"attri... | zzywany123-libaw-1 | test/gles.c | C | bsd | 1,721 |
static void updateTitle(aw * w, int x, int y) {
char buf[16] = {0};
snprintf(buf, sizeof(buf), "%dx%d", x, y);
awSetTitle(w, buf);
}
#if !defined NO_HANDLER
static int processEvents(ag * g, aw * w, ac * c) {
int keepgoing = 1;
const ae * e;
while ((e = awNextEvent(w))) switch (aeType(e)) {
case AW_EVENT_DOWN:... | zzywany123-libaw-1 | test/redbook.h | C | bsd | 1,452 |
#include <aw/sysgl.h>
#include <aw/aw.h>
#include "log.h"
static int g_exit = 0;
static void processEvents(aw * w, ac * c, int n) {
const ae * e;
while ((e = awNextEvent(w))) switch (aeType(e)) {
case AW_EVENT_RESIZE:
Log("Resized %d: %d %d",
n, aeWidth(e), aeHeight(e)); break;
case AW_EVENT_DOWN:
Log(... | zzywany123-libaw-1 | test/sharing.c | C | bsd | 1,474 |
#include <aw/aw.h>
#include <aw/sysgl.h>
#include "log.h"
static int g_exit;
static const char * g_progname;
static ap * g_p = 0;
static const struct gimp_image {
unsigned int width;
unsigned int height;
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
unsigned char pi... | zzywany123-libaw-1 | test/awtest.c | C | bsd | 15,842 |
/* Adapted from the Red Book */
#include <stdarg.h>
#include <stdio.h>
#include <aw/sysgl.h>
#include <aw/sysglu.h>
#include <aw/aw.h>
static GLuint startList;
static void errorCallback(GLenum errorCode)
{
Log("Quadric Error: %s", gluErrorString(errorCode));
}
static void init(void)
{
GLUquadricObj *qobj;
GLflo... | zzywany123-libaw-1 | test/quadric.c | C | bsd | 3,292 |
#include <aw/sysgl.h>
#include <aw/aw.h>
#include "log.h"
static int g_exit = 0;
static void processEvents(aw * w, ac * c, int n) {
const ae * e;
while ((e = awNextEvent(w))) switch (aeType(e)) {
case AW_EVENT_RESIZE:
Log("Resized %d: %d %d",
n, aeWidth(e), aeHeight(e)); break;
case AW_EVENT_DOWN:
... | zzywany123-libaw-1 | test/multi.c | C | bsd | 1,611 |
static void
drawBox(GLfloat size, GLenum type) {
static GLfloat n[6][3] =
{
{-1.0, 0.0, 0.0},
{0.0, 1.0, 0.0},
{1.0, 0.0, 0.0},
{0.0, -1.0, 0.0},
{0.0, 0.0, 1.0},
{0.0, 0.0, -1.0}
};
static GLint faces[6][4] =
{
{0, 1, 2, 3},
{3, 2, 6, 7},
{7, 6, 5, 4},
{4, 5, 1, 0},
{5, 6, 2, 1... | zzywany123-libaw-1 | test/drawbox.h | C | bsd | 1,001 |
/* Adapted from the Red Book */
#include <aw/sysgl.h>
#include <aw/sysglu.h>
#include <aw/aw.h>
#include "log.h"
#include "drawbox.h"
static void init(void)
{
glClearColor (0.0, 0.0, 0.0, 0.0);
glShadeModel (GL_FLAT);
}
static void display(void)
{
static int angle = 0;
glClear (GL_COLOR_BUFFER_BIT);
glColor3f ... | zzywany123-libaw-1 | test/cube.c | C | bsd | 960 |
/* Adapted from the Red Book */
#include <stdarg.h>
#include <stdio.h>
#include <aw/sysgl.h>
#include <aw/sysglu.h>
#include <aw/aw.h>
#include "log.h"
static int board[3][3]; /* amount of color for each square*/
/* Clear color value for every square on the board */
static void init(void)
{
int i, j;
for (i =... | zzywany123-libaw-1 | test/picksquare.c | C | bsd | 3,621 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | zzfocuzz- | Tasks.ASP.NET.SimpleOAuth2/ClientCredentials.cs | C# | asf20 | 2,021 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zzfocuzz- | Tasks.ASP.NET.SimpleOAuth2/Properties/AssemblyInfo.cs | C# | asf20 | 1,441 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | Tasks.ASP.NET.SimpleOAuth2/Default.aspx.cs | C# | asf20 | 6,558 |
<%@ Page Language="C#"
EnableSessionState="true"
AutoEventWireup="true"
CodeBehind="Default.aspx.cs"
Async="true"
Inherits="Tasks.ASP.NET.SimpleOAuth2._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
... | zzfocuzz- | Tasks.ASP.NET.SimpleOAuth2/Default.aspx | ASP.NET | asf20 | 1,009 |
<html>
<title>Google .NET Client API – Tasks.ASP.NET.SimpleOAuth2</title>
<body>
<h2>Instructions for the Google .NET Client API – Tasks.ASP.NET.SimpleOAuth2</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.ASP... | zzfocuzz- | Tasks.ASP.NET.SimpleOAuth2/README.html | HTML | asf20 | 1,848 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | UrlShortener.ShortenURL/Program.cs | C# | asf20 | 2,910 |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Urlshortener.v1.Cmd")]
[assembly... | zzfocuzz- | UrlShortener.ShortenURL/Properties/AssemblyInfo.cs | C# | asf20 | 1,446 |
<html>
<title>Google .NET Client API – UrlShortener.ShortenURL</title>
<body>
<h2>Instructions for the Google .NET Client API – UrlShortener.ShortenURL</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FUrlShortener.Sh... | zzfocuzz- | UrlShortener.ShortenURL/README.html | HTML | asf20 | 1,675 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | UrlShortener.ListURLs/Program.cs | C# | asf20 | 4,769 |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("UrlShortener.ListURLs")]
[assembly... | zzfocuzz- | UrlShortener.ListURLs/Properties/AssemblyInfo.cs | C# | asf20 | 1,434 |
<html>
<title>Google .NET Client API – UrlShortener.ListURLs</title>
<body>
<h2>Instructions for the Google .NET Client API – UrlShortener.ListURLs</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FUrlShortener.ListUR... | zzfocuzz- | UrlShortener.ListURLs/README.html | HTML | asf20 | 1,665 |
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices
' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.
' Review the values of the assembly attribut... | zzfocuzz- | Calendar.VB.ConsoleApp/My Project/AssemblyInfo.vb | Visual Basic .NET | asf20 | 1,210 |
'Copyright 2013 Google Inc
'Licensed under the Apache License, Version 2.0(the "License");
'you may not use this file except in compliance with the License.
'You may obtain a copy of the License at
' http://www.apache.org/licenses/LICENSE-2.0
'Unless required by applicable law or agreed to in writing, so... | zzfocuzz- | Calendar.VB.ConsoleApp/Program.vb | Visual Basic .NET | asf20 | 5,307 |
<html>
<title>Google .NET Client API – Calendar.VB.ConsoleApp</title>
<body>
<h2>Instructions for the Google .NET Client API – Calendar.VB.ConsoleApp</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FCalendar.VB.Conso... | zzfocuzz- | Calendar.VB.ConsoleApp/README.html | HTML | asf20 | 1,480 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | Tasks.CreateTasks/Program.cs | C# | asf20 | 5,527 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zzfocuzz- | Tasks.CreateTasks/Properties/AssemblyInfo.cs | C# | asf20 | 1,466 |
<html>
<title>Google .NET Client API – Tasks.CreateTasks</title>
<body>
<h2>Instructions for the Google .NET Client API – Tasks.CreateTasks</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.CreateTasks">Browse S... | zzfocuzz- | Tasks.CreateTasks/README.html | HTML | asf20 | 1,638 |
@echo off
EnterCredentials\static\EnterCredentials.exe %1 %2 %3 %4 %5 %6 %7 %8 | zzfocuzz- | enterCredentials.cmd | Batchfile | asf20 | 79 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | Tasks.WinForms.NoteMgr/NoteItem.cs | C# | asf20 | 5,238 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | Tasks.WinForms.NoteMgr/Program.cs | C# | asf20 | 3,903 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | zzfocuzz- | Tasks.WinForms.NoteMgr/ClientCredentials.cs | C# | asf20 | 2,024 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | Tasks.WinForms.NoteMgr/NoteForm.cs | C# | asf20 | 7,504 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zzfocuzz- | Tasks.WinForms.NoteMgr/Properties/AssemblyInfo.cs | C# | asf20 | 1,476 |
<html>
<title>Google .NET Client API – Tasks.WinForms.NoteMgr</title>
<body>
<h2>Instructions for the Google .NET Client API – Tasks.WinForms.NoteMgr</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.WinForms.No... | zzfocuzz- | Tasks.WinForms.NoteMgr/README.html | HTML | asf20 | 1,806 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | Tasks.ETagCollision/Program.cs | C# | asf20 | 5,620 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zzfocuzz- | Tasks.ETagCollision/Properties/AssemblyInfo.cs | C# | asf20 | 1,470 |
<html>
<title>Google .NET Client API – Tasks.ETagCollision</title>
<body>
<h2>Instructions for the Google .NET Client API – Tasks.ETagCollision</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.ETagCollision">Br... | zzfocuzz- | Tasks.ETagCollision/README.html | HTML | asf20 | 1,648 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | SiteVerification.VerifySite/Program.cs | C# | asf20 | 4,781 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zzfocuzz- | SiteVerification.VerifySite/Properties/AssemblyInfo.cs | C# | asf20 | 1,483 |
<html>
<title>Google .NET Client API – SiteVerification.VerifySite</title>
<body>
<h2>Instructions for the Google .NET Client API – SiteVerification.VerifySite</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FSiteVer... | zzfocuzz- | SiteVerification.VerifySite/README.html | HTML | asf20 | 1,699 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | Books.ListMyLibrary/Program.cs | C# | asf20 | 6,149 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zzfocuzz- | Books.ListMyLibrary/Properties/AssemblyInfo.cs | C# | asf20 | 1,473 |
<html>
<title>Google .NET Client API – Books.ListMyLibrary</title>
<body>
<h2>Instructions for the Google .NET Client API – Books.ListMyLibrary</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FBooks.ListMyLibrary">Br... | zzfocuzz- | Books.ListMyLibrary/README.html | HTML | asf20 | 1,648 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zzfocuzz- | UrlShortener.ASP.NET/Properties/AssemblyInfo.cs | C# | asf20 | 1,429 |
/*
Copyright 2011 Google Inc
Licensed under the Apache License, Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | zzfocuzz- | UrlShortener.ASP.NET/Default.aspx.cs | C# | asf20 | 3,446 |
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="UrlShortener.ASP.NET._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
... | zzfocuzz- | UrlShortener.ASP.NET/Default.aspx | ASP.NET | asf20 | 1,173 |
<html>
<title>Google .NET Client API – UrlShortener.ASP.NET</title>
<body>
<h2>Instructions for the Google .NET Client API – UrlShortener.ASP.NET</h2>
<h3>Browse Online</h3>
<ul>
<li><a href="http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FUrlShortener.ASP.NET"... | zzfocuzz- | UrlShortener.ASP.NET/README.html | HTML | asf20 | 1,816 |