repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
GongChuanZan/JSOCInteraction | JSOCInteractionDemo/JSOCInteractionDemo/SecondViewController.h | //
// SecondViewController.h
// JSOCInteractionDemo
//
// Created by gongcz on 15/10/9.
// Copyright © 2015年 gongcz. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SecondViewController : UIViewController
@end
|
GongChuanZan/JSOCInteraction | JSOCInteractionDemo/JSOCInteractionDemo/JSOCInteraction/JSOCInteraction.h | <gh_stars>1-10
//
// JSOCInteraction.h
// JSOCInteractionDemo
//
// Created by gongcz on 16/5/10.
// Copyright © 2016年 gongcz. All rights reserved.
//
/*
注意:该类所有函数都必须写在webViewDidFinishLoad代理内即加载完毕后调用。
*/
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// framework
#import <JavaScriptCore/JavaScriptCor... |
mjoldfield/morsetool | c-test/main.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include "tinywav.h"
#include "morseout.h"
const uint32_t f_sample = 48000; // Hz
const uint32_t f_tone = 800; // Hz
const uint32_t t_dit = 50; // in ms : NOTE NOT s
int main(int argc, char *argv[])
{
print... |
lucianvasai05/NetworkScann | headers extract linux!/proiect.c | #include<pcap.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<net/ethernet.h>
#include<netinet/ip_icmp.h>
#include<netinet/udp.h>
#include<netinet/tcp.h>
#include<netinet/ip.h>
void process_packet(u_char *, const struct pcap_pkthdr *, cons... |
tonyw/antares | engine/device-stub/include/cuda.h | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#ifndef __ANTARES_CUDA_STUB__
#define __ANTARES_CUDA_STUB__
#include <assert.h>
typedef void* cudaEvent_t;
typedef void* cudaStream_t;
typedef void* CUfunction;
typedef void* CUmodule;
typedef void* CUstream;
typedef void* nvrtcProgram;
type... |
tonyw/antares | public/cuda11prof/cuda_main.h | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
CUresult cuGetErrorString(CUresult error, const char **pStr) {
LOAD_DLSYM();
return __func(error, pStr);
}
CUresult cuGetErrorName(CUresult error, const char **pStr) {
LOAD_DLSYM();
return __func(error, pStr);
}
CUresult cuInit(unsigned... |
tonyw/antares | engine/device-stub/include/nvrtc.h | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#ifndef __ANTARES_CUDA_STUB__
#define __ANTARES_CUDA_STUB__
#include <assert.h>
typedef void* cudaEvent_t;
typedef void* cudaStream_t;
typedef void* CUfunction;
typedef void* CUmodule;
typedef void* CUstream;
typedef void* nvrtcProgram;
type... |
tonyw/antares | platforms/c-hlsl/evaluator/AntaresHlslLib/D3D12APIWrapper.h | <reponame>tonyw/antares<gh_stars>1-10
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#ifndef __ANTARES_D3D12_WRAPPER__
#define __ANTARES_D3D12_WRAPPER__
#define __EXPORT__ extern "C" __declspec(dllexport)
__EXPORT__ int dxInit(int flags);
__EXPORT__ void* dxStreamCreate();
... |
MasterMenOfficial/CSPSP-Client | src/BuyMenu.h | #ifndef _BUYMENU_H_
#define _BUYMENU_H_
#include "JGE.h"
#include "JRenderer.h"
#include "JGui.h"
#include "MenuItem.h"
#include "Person.h"
#include "GunObject.h"
#include "SfxManager.h"
#include "Menu.h"
#define MAIN 0
#define PISTOLS 1
#define SHOTGUNS 2
#define SMG 3
#define RIFLES 4
#define MACHINEGUNS 5
#define ... |
MasterMenOfficial/CSPSP-Client | src/Wlan.h | <reponame>MasterMenOfficial/CSPSP-Client
#ifndef _WLAN_H_
#define _WLAN_H_
#ifdef WIN32
#include "JGE.h"
#include <stdio.h> // For perror() call
#include <stdlib.h> // For exit() call
#include <windows.h>
#include <winsock.h> // Include Winsock Library
#include <iostream>
#define bzero(p, l) memset(p, 0, l)
#define b... |
MasterMenOfficial/CSPSP-Client | src/Packet.h | <filename>src/Packet.h
#ifndef _PACKET_H_
#define _PACKET_H_
#include <vector>
#include <string.h>
#include <stdio.h>
class Packet
{
private:
std::vector<char> data;
int index;
int id;
float time;
protected:
public:
Packet();
Packet(char* buffer, int size);
~Packet();
char* Data();
int Length();
int Ind... |
MasterMenOfficial/CSPSP-Client | src/SfxManager.h | <gh_stars>1-10
#ifndef _SFXMANAGER_H_
#define _SFXMANAGER_H_
#include "JSoundSystem.h"
#include "JGE.h"
//------------------------------------------------------------------------------------------------
class SfxManager
{
private:
static JSoundSystem* mSoundSystem;
protected:
public:
float mX;
float mY;
SfxMan... |
MasterMenOfficial/CSPSP-Client | src/Node.h | #ifndef _NODE_H_
#define _NODE_H_
#include <vector>
//------------------------------------------------------------------------------------------------
class Node
{
private:
protected:
public:
int mX;
int mY;
int mNumConnections;
std::vector<Node*> mConnections;
//for pathfinding
Node* mParent;
int F;
in... |
MasterMenOfficial/CSPSP-Client | src/Grenade.h | <gh_stars>1-10
#ifndef _GRENADE_H_
#define _GRENADE_H_
#include "Bullet.h"
#define FLASH 0
#define HE 1
#define SMOKE 2
//------------------------------------------------------------------------------------------------
class Grenade : public Bullet
{
private:
protected:
float mSpinAngle;
public:
float mTimer;
i... |
MasterMenOfficial/CSPSP-Client | src/AI.h | #ifndef _AI_H_
#define _AI_H_
#include "Person.h"
#include "TileMap.h"
#include "Collision.h"
#include "AStar.h"
#include "Grid.h"
#define NONE -1
#define T 0
#define CT 1
#define AI_IDLE 0
#define AI_RANDOM 1
#define AI_SEARCHING 2
#define AI_ATTACKING 3
#define AI_FLASHED 4
//--------------------------------------... |
MasterMenOfficial/CSPSP-Client | src/ParticleEngine.h | //-------------------------------------------------------------------------------------
//
// This is part of JGE++, a hardware accelerated 2D game engine for PSP/Windows.
//
// Copyright (C) 2006 <NAME> (a.k.a. Dr.Watson)
//
// This program is free software; you can redistribute it and/or modify it
// under the term... |
MasterMenOfficial/CSPSP-Client | src/AStar.h | <reponame>MasterMenOfficial/CSPSP-Client
#ifndef _ASTAR_H_
#define _ASTAR_H_
#ifdef WIN32
#include <math.h>
#else
#include <fastmath.h>
#endif
#include <vector>
#include <algorithm>
#include "Node.h"
#include "TileMap.h"
#include "Person.h"
#include "Collision.h"
#include "Grid.h"
struct SortByF
{
bool operator()(N... |
MasterMenOfficial/CSPSP-Client | src/Game.h | <gh_stars>1-10
#ifndef _GAME_H_
#define _GAME_H_
#pragma warning(disable: 4996)
#include <vector>
#include <algorithm>
#include "Person.h"
#include "PersonOnline.h"
#include "TileMap.h"
#include "Bullet.h"
#include "GunObject.h"
#include "Camera.h"
#include "Collision.h"
#include "Globals.h"
#include "GameState.h"
#i... |
MasterMenOfficial/CSPSP-Client | src/Grid.h | <gh_stars>1-10
#ifndef _GRID_H_
#define _GRID_H_
#include <vector>
#include "Person.h"
#include "GunObject.h"
#include "Person.h"
#include "TileMap.h"
#include "Collision.h"
struct Cell {
std::vector<CollisionLine*> mCollisionLines;
std::vector<Person*> mPeople;
std::vector<GunObject*> mGunObjects;
std::vector<Bu... |
MasterMenOfficial/CSPSP-Client | src/GameStateMenu.h | //-------------------------------------------------------------------------------------
//
// This is part of StarBugz, a Space Invader clone developed with JGE++.
//
// Version: 0.0.1 (Prototype)
//
// Released Date: 5th December 2005
//
// Copyright (C) 2005 <NAME> (a.k.a. Dr.Watson)
//
// This program is free softwa... |
MasterMenOfficial/CSPSP-Client | src/gun2.h | #ifndef _GUN_H_
#define _GUN_H_
#define PRIMARY 0
#define SECONDARY 1
#define KNIFE 2
#define BOMB 4
#include "JSoundSystem.h"
//------------------------------------------------------------------------------------------------
class Gun
{
private:
static JSoundSystem* mSoundSystem;
protected:
public:
JQuad* mHandQ... |
MasterMenOfficial/CSPSP-Client | src/idstorage.c | <gh_stars>1-10
int ReadKey(int key, char *buffer); |
MasterMenOfficial/CSPSP-Client | src/GameStateUpdate.h | #ifndef _GAME_STATE_UPDATE_H_
#define _GAME_STATE_UPDATE_H_
#include "JGui.h"
#include "GameState.h"
#include "MenuItem.h"
#include <vector>
#include "Wlan.h"
#include "ListBox.h"
#define TRUE 1
#define FALSE 0
#define STAGE_GETVERSIONS 0
#define STAGE_GETFILES 1
#define STAGE_GETTEXT 2
#define STAGE_TEXT 3
#define S... |
MasterMenOfficial/CSPSP-Client | src/Camera.h | #ifndef __CAMERA_H__
#define __CAMERA_H__
#include "JGE.h"
#include "Collision.h"
#ifdef WIN32
#include <math.h>
#else
#include <fastmath.h>
#endif
class Camera
{
private:
public:
float mX;
float mY;
float mTX;
float mTY;
float mA;
float mMinX;
float mMinY;
float mMaxX;
float mMaxY;
float mShakeX;
floa... |
MasterMenOfficial/CSPSP-Client | src/prof.h | #include <stdlib.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#define GMON_PROF_ON 0
#define GMON_PROF_BUSY 1
#define GMON_PROF_ERROR 2
#define GMON_PROF_OFF 3
#define GMONVERSION 0x00051879
#include <pspthreadman.h>
/** gmon.out file header */
struct gmonhdr
{
char cookie[4];
char ... |
MasterMenOfficial/CSPSP-Client | src/Particle.h | //-------------------------------------------------------------------------------------
//
// This is part of JGE++, a hardware accelerated 2D game engine for PSP/Windows.
//
// Copyright (C) 2006 <NAME> (a.k.a. Dr.Watson)
//
// This program is free software; you can redistribute it and/or modify it
// under the term... |
MasterMenOfficial/CSPSP-Client | src/GameApp.h | <reponame>MasterMenOfficial/CSPSP-Client
//-------------------------------------------------------------------------------------
//
// JGE++ is a hardware accelerated 2D game SDK for PSP/Windows.
//
// Licensed under the BSD license, see LICENSE in JGE root for details.
//
// Copyright (c) 2007 <NAME> (a.k.a. Dr.Watso... |
MasterMenOfficial/CSPSP-Client | src/GameStatePlay.h | <reponame>MasterMenOfficial/CSPSP-Client
#ifndef _GAME_STATE_PLAY_H_
#define _GAME_STATE_PLAY_H_
#include "GameState.h"
#include "GameApp.h"
#include <time.h>
#include <vector>
#include "Person.h"
#include "AI.h"
#include "TileMap.h"
#include "ParticleEngine.h"
#include "SfxManager.h"
#include "Bullet.h"
#include "G... |
MasterMenOfficial/CSPSP-Client | src/MeshEffect.h | //-------------------------------------------------------------------------------------
//
// This is part of MarioDemo, a platformer demo for JGE++
//
// Copyright (C) 2006 <NAME> (a.k.a. Dr.Watson)
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Pu... |
MasterMenOfficial/CSPSP-Client | src/Hud.h | #ifndef __HUD_H__
#define __HUD_H__
#include <vector>
#include "JRenderer.h"
#include "JLBFont.h"
#include "Person.h"
#include "PersonOnline.h"
#include "SfxManager.h"
#define SERVER -2
#define NONE -1
#define T 0
#define CT 1
#define MESSAGEEVENT 0
#define CHATEVENT 1
struct ChatEvent {
char name[32];
char string... |
MasterMenOfficial/CSPSP-Client | src/Animation.h | #ifndef __ANIMATION_H__
#define __ANIMATION_H__
#include <vector>
#include "JGE.h"
struct KeyFrame {
float angles[6];
float duration;
};
struct KeyFrameAnim {
char mName[64];
std::vector<KeyFrame> mKeyFrames;
};
class Animation
{
private:
KeyFrameAnim* mKeyFrameAnim;
float mTimer;
int mIndex;
float mSpeed... |
MasterMenOfficial/CSPSP-Client | rapmetprx/main.c | /*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* main.c - Simple PRX example.
*
* Copyright (c) 2005 <NAME> <<EMAIL>>
*
* $Id: main.c 1531 2005-12-07 ... |
MasterMenOfficial/CSPSP-Client | src/GameStateLoading.h | #ifndef _GAME_STATE_LOADING_H_
#define _GAME_STATE_LOADING_H_
#include "GameState.h"
#include "Game.h"
class GameStateLoading: public GameState
{
private:
int mStage;
public:
GameStateLoading(GameApp* parent);
~GameStateLoading();
int MusicType;
void Start();
void End();
void Update(float dt);
void Rende... |
MasterMenOfficial/CSPSP-Client | src/GameState.h | <gh_stars>1-10
//-------------------------------------------------------------------------------------
//
// This is part of StarBugz, a Space Invader clone developed with JGE++.
//
// Version: 0.0.1 (Prototype)
//
// Released Date: 5th December 2005
//
// Copyright (C) 2005 <NAME> (a.k.a. Dr.Watson)
//
// This progr... |
MasterMenOfficial/CSPSP-Client | src/UdpManager.h | #ifndef _UDPMANAGER_H_
#define _UDPMANAGER_H_
#include "Wlan.h"
#include "Packet.h"
#include <vector>
enum {
GAMEINFO = 0,
GAMEINFOEND,
GUNINFO,
NEWMAP,
NEWPLAYER,
REMOVEPLAYER,
CONNECT,
SWITCHTEAM,
PLAYERMOVE,
RESPAWN,
MOVE,
SWITCHGUN,
SPAWNGUN,
PICKUPGUN,
DROPGUN,
DROPGUNDEAD,
NEWGUN,
MOVEGUN,
ST... |
MasterMenOfficial/CSPSP-Client | src/TileMap.h | <gh_stars>1-10
#ifndef _TILEMAP_H_
#define _TILEMAP_H_
#include "JRenderer.h"
#include "Node.h"
#include "GunObject.h"
#include "Collision.h"
#define MAXDECALS 50
#define DECAL_BLOOD 0
#define DECAL_EXPLOSION 1
#define TEAM 0
#define FFA 1
#define CTF 2
#define ZM 3
struct CollisionPoint {
float x;
float y;
bool... |
MasterMenOfficial/CSPSP-Client | src/GameStateSplash.h | //-------------------------------------------------------------------------------------
//
// This is part of StarBugz, a Space Invader clone developed with JGE++.
//
// Version: 0.0.1 (Prototype)
//
// Released Date: 5th December 2005
//
// Copyright (C) 2005 <NAME> (a.k.a. Dr.Watson)
//
// This program is free soft... |
MasterMenOfficial/CSPSP-Client | src/Menu.h | <gh_stars>1-10
#ifndef _MENU_H_
#define _MENU_H_
struct Button {
Button(int _id, char* _name) {
id = _id;
strcpy(name,_name);
};
int id;
char name[256];
};
struct Category {
int id;
std::vector<Button> buttons;
};
#endif
|
MasterMenOfficial/CSPSP-Client | src/GunObjectOnline.h | #ifndef _GunObjectOnline_H_
#define _GunObjectOnline_H_
#include "GunObject.h"
//------------------------------------------------------------------------------------------------
class GunObjectOnline : public GunObject
{
private:
protected:
public:
int mId;
float mSX;
float mSY;
float mSAngle;
GunObjectOnlin... |
MasterMenOfficial/CSPSP-Client | src/MenuItem.h | //-------------------------------------------------------------------------------------
//
// This is part of StarBugz, a Space Invader clone developed with JGE++.
//
// Version: 0.0.1 (Prototype)
//
// Released Date: 5th December 2005
//
// Copyright (C) 2005 <NAME> (a.k.a. Dr.Watson)
//
// This program is free soft... |
MasterMenOfficial/CSPSP-Client | src/ListBox.h | <gh_stars>1-10
#ifndef _LISTBOX_H_
#define _LISTBOX_H_
#include <vector>
#include <algorithm>
#include "JGE.h"
#include "JRenderer.h"
#include "Globals.h"
//------------------------------------------------------------------------------------------------
#define TYPE_LIST 0
#define TYPE_TEXT 1
class ListItem
{
publi... |
MasterMenOfficial/CSPSP-Client | src/Globals.h | <gh_stars>1-10
#ifndef _GLOBALS_H_
#define _GLOBALS_H_
#include "JGE.h"
#include "JLBFont.h"
#include <time.h>
#include <vector>
#include "Person.h"
#include "AI.h"
#include "TileMap.h"
#include "ParticleEngine.h"
#include "SfxManager.h"
#include "Bullet.h"
#include "GunObject.h"
#include "BuyMenu.h"
#include "Camera.... |
MasterMenOfficial/CSPSP-Client | src/prof.c | /*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* main.c - Basic sample to demonstrate the profiler
*
* Copyright (c) 2005 urchin <<EMAIL>>
*
* $Id:
*... |
MasterMenOfficial/CSPSP-Client | src/GameStateOptions.h | <filename>src/GameStateOptions.h
#ifndef _GAME_STATE_OPTIONS_H_
#define _GAME_STATE_OPTIONS_H_
#include "JGui.h"
#include "GameState.h"
#include "MenuItem.h"
#include <vector>
#ifdef WIN32
#else
#include <psputility.h>
#endif
#define GENERAL 0
#define GAME 1
#define CONTROLS 2
#define NUMCONFIGS 7
#define RELATIVE... |
MasterMenOfficial/CSPSP-Client | src/BulletOnline.h | <gh_stars>1-10
#ifndef _BULLETONLINE_H_
#define _BULLETONLINE_H_
#include "Bullet.h"
//------------------------------------------------------------------------------------------------
class BulletOnline : public Bullet
{
private:
protected:
public:
float mSX;
float mSY;
BulletOnline(float x, float y, float px, ... |
MasterMenOfficial/CSPSP-Client | src/PersonOnline.h | #ifndef _PersonOnline_H_
#define _PersonOnline_H_
#include "Person.h"
//#include "UdpManager.h"
#define NORMAL2 0
#define ATTACKING2 1
struct Input {
int x;
int y;
float facingangle;
};
struct State {
float x;
float y;
float speed;
float angle;
};
struct Move {
Input input;
State state;
float time;
};
//... |
MasterMenOfficial/CSPSP-Client | src/HttpManager.h | <filename>src/HttpManager.h
#ifndef _HTTPMANAGER_H_
#define _HTTPMANAGER_H_
#include "Wlan.h"
#include <deque>
#include <string>
#include <string.h>
#define CONTENT_UNKNOWN 0
#define CONTENT_CHUNKED 1
#define CONTENT_NORMAL 2
#define REQUEST_GET 0
#define REQUEST_POST 1
struct Request
{
int type;
char page[4096];... |
MasterMenOfficial/CSPSP-Client | src/TeamMenu.h | #ifndef _TEAMMENU_H_
#define _TEAMMENU_H_
#include "JGE.h"
#include "JRenderer.h"
#include "JGui.h"
#include "MenuItem.h"
#include "Person.h"
#include "Menu.h"
#define MAIN1 2
#define NONE -1
#define T 0
#define CT 1
#define CANCEL 2
//-------------------------------------------------------------------------------... |
MasterMenOfficial/CSPSP-Client | src/GameStateConnect.h | <reponame>MasterMenOfficial/CSPSP-Client
#ifndef _GAME_STATE_CONNECT_H_
#define _GAME_STATE_CONNECT_H_
#include "JGui.h"
#include "GameState.h"
#include <vector>
#include "Wlan.h"
#include "ListBox.h"
#ifdef WIN32
#else
#include <malloc.h>
#include <pspdisplay.h>
#include <pspkernel.h>
#include <dirent.h>
#include <u... |
MasterMenOfficial/CSPSP-Client | src/easyconnect.h | /*
* File: easyconnect.h
* Author: joris
*
* Created on 15 augustus 2009, 19:58
*
*/
/* EasyConnect is a class which enables you to use the PSP NetConf Dialog to
* connect to an access point.
*
*
* If you already set up the GU the minimal code would be:
*
* #include "easyconnect.h"
* ...
* ... |
MasterMenOfficial/CSPSP-Client | src/Person.h | #ifndef _PERSON_H_
#define _PERSON_H_
#include "JRenderer.h"
#include "JSoundSystem.h"
#include "Bullet.h"
#include "Grenade.h"
#include "GunObject.h"
#include "SfxManager.h"
#include <vector>
#include "Node.h"
#include "GunObjectOnline.h"
#include "Animation.h"
#define RELATIVE1 0
#define ABSOLUTE1 1
#define MOVING... |
MasterMenOfficial/CSPSP-Client | src/Danzeff.h | #ifndef INCLUDED_KEYBOARDS_DANZEFF_H
#define INCLUDED_KEYBOARDS_DANZEFF_H
//danzeff is BSD licensed, if you do make a new renderer then please share it back and I can add it
//to the original distribution.
//Set which renderer target to build for
/* #define DANZEFF_SDL */
/* #define DANZEFF_SCEGU */
#include "JGE.h"... |
MasterMenOfficial/CSPSP-Client | src/GunObject.h | <gh_stars>1-10
#ifndef _GUNOBJECT_H_
#define _GUNOBJECT_H_
#include "JGE.h"
#include "JRenderer.h"
#include "JSoundSystem.h"
#include <vector>
struct Gun {
JQuad* mHandQuad;
JQuad* mGroundQuad;
int mId;
int mDelay;
int mDamage;
float mSpread;
int mClip;
int mNumClips;
int mReloadDelay;
float mSpeed;
float ... |
MasterMenOfficial/CSPSP-Client | src/GameStateOnline.h | #ifndef _GAME_STATE_ONLINE_H_
#define _GAME_STATE_ONLINE_H_
#ifdef WIN32
#include <direct.h>
#else
#include <sys/types.h>
#include <sys/stat.h>
#endif
#include "GameState.h"
#include "GameApp.h"
#include <time.h>
#include <vector>
#include <map>
#include "Person.h"
#include "AI.h"
#include "TileMap.h"
#include "Parti... |
MasterMenOfficial/CSPSP-Client | src/Bullet.h | <reponame>MasterMenOfficial/CSPSP-Client<gh_stars>1-10
#ifndef _BULLET_H_
#define _BULLET_H_
#ifdef WIN32
#include <math.h>
#else
#include <fastmath.h>
#endif
#include "JRenderer.h"
#include "GunObject.h"
#define TYPE_BULLET 0
#define TYPE_GRENADE 1
#define BULLET_DEAD 5
//-------------------------------------------... |
MasterMenOfficial/CSPSP-Client | src/GameStateLobby.h | #ifndef _GAME_STATE_LOBBY_H_
#define _GAME_STATE_LOBBY_H_
#include <string>
#include <vector>
#include "JGui.h"
#include "GameState.h"
#include "MenuItem.h"
#include "Wlan.h"
#include "UdpManager.h"
#include "ListBox.h"
#ifdef WIN32
#else
#include <malloc.h>
#include <pspdisplay.h>
#include <pspkernel.h>
#include <di... |
MasterMenOfficial/CSPSP-Client | src/Collision.h | #ifndef _COLLISION_H_
#define _COLLISION_H_
#include "JGE.h"
#include "Person.h"
#include <vector>
#ifdef WIN32
#include <math.h>
#else
#include <fastmath.h>
#endif
#define max2(a,b) (((a) > (b)) ? (a) : (b))
#define min2(a,b) (((a) < (b)) ? (a) : (b))
#define EPSILON 0.000001f
struct Line... |
MasterMenOfficial/CSPSP-Client | src/GameStateNewGame.h | #ifndef _GAME_STATE_NEW_GAME_H_
#define _GAME_STATE_NEW_GAME_H_
#include <vector>
#include <algorithm>
#include "GameState.h"
#include "MenuItem.h"
#include "ListBox.h"
#ifdef WIN32
#else
#include <malloc.h>
#include <pspdisplay.h>
#include <pspkernel.h>
#include <dirent.h>
#include <unistd.h>
#define TDM 0
#define C... |
le1ca/useless-continuation | src/future.h | #ifndef future_h_
#define future_h_
#include <memory>
#include <functional>
#include <type_traits>
#include <condition_variable>
#include <mutex>
/** Recursive form:
* This future promises a value of type T, and has a continuation chain
* in which the next future produces type U.
*/
template <typename T, typenam... |
luigifcruz/Convert-It | Convert It/AppDelegate.h | <reponame>luigifcruz/Convert-It<filename>Convert It/AppDelegate.h<gh_stars>1-10
//
// AppDelegate.h
// Convert It
//
// Created by <NAME> on 2/7/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#include <stdio.h>
@interface AppDelegate : NSObject <NSApplicationDelegate>
@proper... |
jeanleflambeur/silkopter | silkopter/libs/utils/comms/RCP_Channel.h | <gh_stars>10-100
#pragma once
#include <boost/optional.hpp>
#include "utils/Serialization.h"
#include "RCP.h"
namespace util
{
namespace comms
{
template<class MESSAGE_SIZE_T>
class RCP_Channel : q::util::Noncopyable
{
static const size_t SIZE_OFFSET = 0;
static const size_t HEADER_SIZE = SIZE... |
jeanleflambeur/silkopter | qdata/include/data/Sub_Source.h | #pragma once
namespace q
{
namespace data
{
class Sub_Source : public Source
{
public:
Sub_Source(Source_uptr source, size_t start, size_t size);
virtual ~Sub_Source();
virtual size_t read(uint8_t* buffer, size_t size);
virtual size_t get_size() const;
virtual size_t get_off... |
jeanleflambeur/silkopter | silkopter/fc/src/bus/UART_Linux_Bus.h | #pragma once
#include "common/bus/IUART.h"
#include "utils/hw/UART_Dev.h"
namespace silk
{
namespace hal
{
struct UART_Linux_Descriptor;
}
}
namespace silk
{
namespace bus
{
class UART_Linux_Bus : public IUART_Bus
{
public:
UART_Linux_Bus();
~UART_Linux_Bus();
ts::Result<void> init(hal::IBus_Descriptor... |
jeanleflambeur/silkopter | silkopter/libs/common/bus/IUART.h | #pragma once
#include "IBus.h"
#include "utils/hw/IUART.h"
namespace silk
{
namespace bus
{
class IUART_Bus: public IBus
{
public:
virtual ~IUART_Bus() = default;
virtual util::hw::IUART& get_uart() = 0;
};
}
}
|
jeanleflambeur/silkopter | qdata/include/util/Stream_Encoder.h | <filename>qdata/include/util/Stream_Encoder.h<gh_stars>10-100
#pragma once
namespace q
{
namespace util
{
void encode_base_64(data::Sink& sink, data::Source& source);
void decode_base_64(data::Sink& sink, data::Source& source);
}
} |
jeanleflambeur/silkopter | qdata/include/data/Sink.h | <reponame>jeanleflambeur/silkopter
#pragma once
namespace q
{
namespace data
{
class Sink : util::Noncopyable
{
public:
virtual ~Sink() {}
//Serial interface
virtual size_t write(uint8_t const* buffer, size_t size) = 0;
virtual size_t get_size() const = 0;
//returns the sourc... |
jeanleflambeur/silkopter | q/include/video/GLES/GLES_Buffer_Impl.h | <gh_stars>10-100
#pragma once
#include "video/Buffer.h"
#include "video/GLES/GLES_Interface.h"
#include <atomic>
namespace q
{
namespace video
{
class GLES_Buffer_Impl : public util::Noncopyable
{
public:
enum class Type
{
INDEX,
VERTEX,
UNIFORM
};
GLES_Buffer_Impl(Type type... |
jeanleflambeur/silkopter | q/include/video/Post_FX.h | <filename>q/include/video/Post_FX.h<gh_stars>10-100
#pragma once
namespace q
{
namespace video
{
class Post_Fx
{
public:
void set_material(Material const& material);
Material const& get_material() const;
private:
Material m_material;
};
///////////////////////////////////////////////... |
jeanleflambeur/silkopter | silkopter/libs/utils/hw/ISPI.h | <filename>silkopter/libs/utils/hw/ISPI.h
#pragma once
#include "utils/Clock.h"
namespace util
{
namespace hw
{
class ISPI
{
public:
virtual ~ISPI() = default;
virtual bool transfer(void const* tx_data, void* rx_data, size_t size, uint32_t speed = 0) = 0;
virtual bool transfer_register(uint8_t reg, void ... |
jeanleflambeur/silkopter | silkopter/rc/src/IHaptic.h | #pragma once
#include "IInput_Device.h"
#include "utils/Clock.h"
namespace silk
{
class IHaptic : public virtual IInput_Device
{
public:
virtual ~IHaptic() = default;
struct Note
{
uint32_t frequency; //zero means no vibration
Clock::duration duration;
};
virtual void vibrate(st... |
jeanleflambeur/silkopter | qmath/include/qmath/rect.h | <filename>qmath/include/qmath/rect.h
#pragma once
namespace math
{
/*
* Rectangle template.
* Mostly used by 2D GUI elements and for 2D drawing methods.
* It has 2 positions instead of position and dimension and a fast
* method for collision detection with other rectangles and points.
*
* BEWARE:
*... |
jeanleflambeur/silkopter | silkopter/gs/src/calibration/Angular_Velocity_Calibration_Wizard.h | #pragma once
#include <QDialog>
#include "Comms.h"
class Angular_Velocity_Calibration_Wizard : public QDialog
{
public:
Angular_Velocity_Calibration_Wizard(silk::Comms& comms,
std::string const& node_name,
std::string const& stream_name,
... |
jeanleflambeur/silkopter | def_lang/include/def_lang/impl/String_Type.h | <filename>def_lang/include/def_lang/impl/String_Type.h
#include "def_lang/IString_Type.h"
#include "def_lang/ep/Type_Template_EP.h"
namespace ts
{
class IString_Value;
class String_Value;
class String_Type;
struct String_Type_Traits : IString_Type::traits
{
typedef String_Value value_implementation;
typedef ... |
jeanleflambeur/silkopter | def_lang/include/def_lang/Mapper.h | #pragma once
#include "IValue.h"
#include "Result.h"
#include "Value_Selector.h"
#include "All_INumeric_Values.h"
#include "IVector_Value.h"
#include "IString_Value.h"
#include "IBool_Value.h"
#include "IPoly_Value.h"
namespace ts
{
namespace mapper
{
template<typename T>
Result<void> get(IValue const& src, T& dst);... |
jeanleflambeur/silkopter | def_lang/include/def_lang/IVector_Type.h | <reponame>jeanleflambeur/silkopter
#pragma once
#include "ITemplated_Type.h"
namespace ts
{
class IVector_Value;
class Qualified_Type;
class IVector_Type : virtual public ITemplated_Type
{
public:
virtual ~IVector_Type() = default;
typedef IVector_Value value_type;
virtual std::shared_ptr<const IType>... |
jeanleflambeur/silkopter | silkopter/libs/utils/hw/UART_BB.h | <reponame>jeanleflambeur/silkopter
#pragma once
#include "IUART.h"
#include <string>
#include <vector>
#include <atomic>
namespace util
{
namespace hw
{
class UART_BB : public IUART
{
public:
UART_BB();
~UART_BB();
ts::Result<void> init(uint32_t rx_gpio, uint32_t baud, bool inverted_signalling);
si... |
jeanleflambeur/silkopter | qdata/include/QDataStdAfx.h | #include "QBase.h"
namespace q
{
namespace data
{
class Source;
DECLARE_CLASS_PTR(Source);
class Sub_Source;
DECLARE_CLASS_PTR(Sub_Source);
class Sink;
DECLARE_CLASS_PTR(Sink);
class File_System;
DECLARE_CLASS_PTR(File_System);
class File_Source;
DECLARE_CLASS_PTR(File_Source);
cla... |
jeanleflambeur/silkopter | q/include/video/Buffer.h | #pragma once
namespace q
{
namespace video
{
class Buffer : public util::Noncopyable
{
public:
virtual ~Buffer() {}
enum class Usage : uint8_t
{
STATIC, //rarely updated
STREAM, //updated often
};
//Reallocated the buffer with the size and usage specified
//Calling with... |
jeanleflambeur/silkopter | qmath/include/qmath/func_interp.h | #pragma once
namespace math
{
//////////////////////////////////////////////////////////////////////////
// mixing values based on a weight.
// lerp(a, b, t):
// return a*(t-1) + b*t
template<class T, class Policy = standard> T lerp(T const& a, T const& b, float t);
//does simple linear interpolati... |
jeanleflambeur/silkopter | q/include/video/Technique.h | #pragma once
#include "res/Resource.h"
#include "video/Pass.h"
namespace q
{
namespace video
{
class Technique : public res::Resource
{
public:
Technique(Path const& path);
virtual ~Technique();
virtual void unload();
virtual bool is_valid() const;
void add_pass(Pass const... |
jeanleflambeur/silkopter | def_lang/include/def_lang/IEnum_Value.h | #pragma once
#include "IValue.h"
namespace ts
{
class IEnum_Type;
class IEnum_Item;
class IEnum_Value : virtual public IValue
{
public:
virtual ~IEnum_Value() = default;
virtual std::shared_ptr<IEnum_Type const> get_specialized_type() const = 0;
virtual Result<void> set_value(std::shared_ptr<const IEn... |
jeanleflambeur/silkopter | qdata/include/data/Source.h | <reponame>jeanleflambeur/silkopter
#pragma once
#include "mem/auto_buffer.h"
namespace q
{
namespace data
{
class Source;
DECLARE_CLASS_PTR(Source);
class Source : util::Noncopyable
{
public:
virtual ~Source() {}
//tries to read size bytes into the destination pointer. Returns the actual n... |
jeanleflambeur/silkopter | q/include/video/GLES/GLES_Command_Stream.h | #pragma once
#include "scene/Camera.h"
#include "video/Material.h"
#include "video/Uniform.h"
namespace q
{
namespace video
{
namespace gles
{
class Interface;
}
class GLES_Renderer;
class GLES_Shader;
class GLES_Fbo_Wrapper;
class Command_Stream
{
friend GLES_Renderer;
friend ... |
jeanleflambeur/silkopter | silkopter/gs/src/value_editors/Value_Editor_Factory.h | #pragma once
#include "IValue_Editor.h"
#include <unordered_map>
#include <memory>
class Value_Editor_Factory : public std::enable_shared_from_this<Value_Editor_Factory>
{
public:
Value_Editor_Factory();
void register_standard_editors();
std::shared_ptr<IValue_Editor> create_editor(std::share... |
jeanleflambeur/silkopter | silkopter/gs_old/src/Attitude.h | #pragma once
#include "Render_Widget.h"
#include "Camera_Controller3D.h"
namespace silk
{
class Comms;
}
class Attitude : public QWidget
{
public:
Attitude(QWidget* parent = 0);
~Attitude();
void init();
void render(silk::Comms& comms);
private:
void mousePressEvent(QMouseEvent* event... |
jeanleflambeur/silkopter | def_lang/include/def_lang/impl/Initializer_List.h | #pragma once
#include <memory>
#include <vector>
#include "def_lang/IInitializer_List.h"
namespace ts
{
class Initializer_List final : public virtual IInitializer_List
{
public:
Initializer_List(std::vector<std::shared_ptr<const IInitializer>> initializers);
size_t get_initializer_count() const override;
... |
jeanleflambeur/silkopter | silkopter/fc/src/source/MaxSonar.h | <filename>silkopter/fc/src/source/MaxSonar.h
#pragma once
#include "HAL.h"
#include "common/node/ISource.h"
#include "common/stream/IDistance.h"
#include "common/bus/IUART.h"
#include "Basic_Output_Stream.h"
namespace silk
{
namespace hal
{
struct MaxSonar_Descriptor;
struct MaxSonar_Config;
}
}
namespace silk
{
... |
jeanleflambeur/silkopter | silkopter/libs/common/stream/IPosition.h | #pragma once
#include "Stream_Base.h"
#include "utils/Butterworth.h"
#include "utils/Coordinates.h"
namespace silk
{
namespace stream
{
class IECEF_Position : public ISpatial_Stream<Semantic::POSITION, Space::ECEF>
{
public:
typedef std::true_type can_be_filtered_t;
typedef util::coordinates::ECEF Value; //... |
jeanleflambeur/silkopter | q/include/anim/Pose.h | <gh_stars>10-100
#pragma once
namespace q
{
namespace anim
{
class Pose
{
public:
struct Data
{
math::vec4f data;
//float f[4];
//add more if needed
};
public:
Pose();
Pose(Pose&& other);
Pose(Pose const&) = default;
Pose& operator=(Pose const&) = def... |
jeanleflambeur/silkopter | silkopter/rc/src/IGimbal_Control.h | <gh_stars>10-100
#pragma once
#include "IInput_Device.h"
namespace silk
{
class IGimbal_Control : public IInput_Device
{
public:
virtual ~IGimbal_Control() = default;
virtual float get_raw_pitch() const = 0;
virtual float get_pitch() const = 0;
virtual void set_pitch_calibration(float min, float cen... |
jeanleflambeur/silkopter | silkopter/gs/src/stream_viewers/Multirotor_State_Stream_Viewer_Widget.h | <filename>silkopter/gs/src/stream_viewers/Multirotor_State_Stream_Viewer_Widget.h
#pragma once
#include "IStream_Viewer_Widget.h"
#include "boost/signals2.hpp"
namespace silk
{
class Comms;
}
class Multirotor_State_Stream_Viewer_Widget : public IStream_Viewer_Widget
{
public:
Multirotor_State_Stream_Viewer_Widge... |
jeanleflambeur/silkopter | q/include/video/Pass.h | <filename>q/include/video/Pass.h<gh_stars>10-100
#pragma once
#include "video/Uniform_Def.h"
#include "video/Sampler_Def.h"
#include "video/Attribute_Def.h"
#include "video/Render_State.h"
#include "video/Uber_Shader.h"
#include "video/Render_State_Def.h"
#include "video/Render_Target.h"
namespace q
{
nam... |
jeanleflambeur/silkopter | q/include/scene/Model.h | <gh_stars>10-100
#pragma once
#include "scene/Scene_Node.h"
#include "scene/Skeleton.h"
#include "Ptr_Fw_Declaration.h"
#include "anim/Pose.h"
namespace q
{
namespace scene
{
class Model : public Scene_Node
{
friend class Model_Base;
public:
~Model();
auto get_base() const -> Model_Base_... |
jeanleflambeur/silkopter | qbase/include/util/File_System_Utils.h | #pragma once
#include "Path.h"
namespace q
{
namespace util
{
namespace fs
{
auto get_file_time(Path const& path) -> time_t;
auto set_file_time(Path const& path, time_t time) -> bool;
auto get_file_size(Path const& path) -> size_t;
auto delete_file(Path const& path) -> bool;
auto get_curr... |
jeanleflambeur/silkopter | silkopter/libs/common/node/ICombiner.h | <gh_stars>10-100
#pragma once
#include "common/node/INode.h"
namespace silk
{
namespace node
{
class ICombiner : public Node_Base<Type::COMBINER>
{
public:
};
}
}
|
jeanleflambeur/silkopter | q/include/anim/Animation.h | <reponame>jeanleflambeur/silkopter<gh_stars>10-100
#pragma once
#include "res/Resource.h"
#include "Pose.h"
#include "Animation_Node.h"
namespace q
{
namespace anim
{
class Animation : public res::Resource, public Animation_Node
{
public:
Animation(Path const& path);
virtual ~Animation();
... |
jeanleflambeur/silkopter | silkopter/fc/src/uav_properties/IUAV_Properties.h | <reponame>jeanleflambeur/silkopter
#pragma once
namespace silk
{
class IUAV_Properties
{
public:
virtual ~IUAV_Properties() = default;
virtual float get_mass() const = 0;
virtual float get_moment_of_inertia() const = 0;
};
}
|
jeanleflambeur/silkopter | silkopter/rc/src/IHAL.h | #pragma once
#include "Comms.h"
#include "def_lang/Result.h"
namespace silk
{
namespace settings
{
class Settings;
}
class IHAL
{
public:
virtual ~IHAL() = default;
virtual ts::Result<void> init() = 0;
virtual void shutdown() = 0;
virtual Comms& get_comms() = 0;
virtual math::vec2u32 get_disp... |
jeanleflambeur/silkopter | def_lang/include/def_lang/IPoly_Type.h | #pragma once
#include "ITemplated_Type.h"
namespace ts
{
class IStruct_Type;
class IPoly_Value;
class IPoly_Type;
class Qualified_Type;
struct IPtr_Traits
{
typedef IPoly_Value value_interface;
typedef IPoly_Type type_interface;
typedef std::shared_ptr<IValue> fundamental_type;
};
class IPoly_Type : vi... |
jeanleflambeur/silkopter | qbase/include/util/Util.h | #pragma once
namespace q
{
namespace util
{
extern void memcpy(uint8_t* dst, size_t dstStrideBytes, uint8_t const* src, size_t srcStrideBytes, size_t elementSizeBytes, size_t count);
template<class T>
std::pair<size_t, size_t> find_line_char_by_offset(T const& str, size_t off)
{
size_t line = 1;
s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.