repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
azadeh-afzar/CCN-IRIBU
src/ccnl-fwd/include/ccnl-localrpc.h
<reponame>azadeh-afzar/CCN-IRIBU<filename>src/ccnl-fwd/include/ccnl-localrpc.h<gh_stars>10-100 /** * @addtogroup CCNL-fwd * @{ * @file ccnl-localrpc.h * @brief CCN-lite - local RPC processing logic * * @author <NAME> <<EMAIL>> * * @copyright (C) 2014-2018, <NAME>, University of Basel * Permission to use, copy,...
azadeh-afzar/CCN-IRIBU
src/ccnl-test/include/ccnl-unit.h
<filename>src/ccnl-test/include/ccnl-unit.h #ifndef CCNL_UNIT_H #define CCNL_UNIT_H #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> int C_ASSERT_EQUAL_INT(int a, int b){ return a == b ? 1 : 0; } int C_ASSERT_EQUAL_STRING(char *a, char *b){ return !strcmp(a,b); } int C_ASSERT...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/src/ccnl-array.c
/* * @f ccnl-buf.h * @b CCN lite (CCNL), core header file (internal data structures) * * Copyright (C) 2011-17, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this pe...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-callbacks.h
/* * @f ccnl-callbacks.h * @b CCN lite, core CCNx protocol logic * * Copyright (C) 2018 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies....
azadeh-afzar/CCN-IRIBU
test/ccnl-core/test_sockunion.c
/** * @file test-sockunion.c * @brief Tests for sockunion related functions * * Copyright (C) 2018 Safety IO * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear ...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/src/ccnl-buf.c
<reponame>azadeh-afzar/CCN-IRIBU /* * @f ccnl-buf.c * @b CCN lite (CCNL), core header file (internal data structures) * * Copyright (C) 2011-17, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the abov...
azadeh-afzar/CCN-IRIBU
src/ccnl-android/native/src/ccn-lite-android.c
<gh_stars>10-100 /* * @f ccn-lite-android.c * @b native code (library) for Android devices * * Copyright (C) 2015, <NAME>, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice ...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-crypto.h
<reponame>azadeh-afzar/CCN-IRIBU // // Created by <NAME> on 28.06.17. // #ifndef CCNL_CRYPTO_H #define CCNL_CRYPTO_H #endif //CCNL_CRYPTO_H
azadeh-afzar/CCN-IRIBU
src/ccnl-utils/include/ccnl-ext-hmac.h
/** * @addtogroup CCNL-utils * @{ * * @file ccnl-ext-hmac.h * @brief HMAC-256 signing support based on RFC 2104 * * Copyright (C) 2015-18 <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-face.h
/* * @f ccnl-face.h * @b CCN lite (CCNL), core header file (internal data structures) * * Copyright (C) 2011-17, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this p...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-array.h
<reponame>azadeh-afzar/CCN-IRIBU /* * @f ccnl-buf.h * @b CCN lite (CCNL), core header file (internal data structures) * * Copyright (C) 2011-17, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the abov...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-relay.h
<reponame>azadeh-afzar/CCN-IRIBU /** * @ingroup CCNL-core * @{ * @file ccnl-relay.h * @brief CCN lite (CCNL) data structure ccnl-relay. contains all important datastructures for CCN-lite forwarding * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * * @copyright (C) 2011-17, University of Basel * Permis...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-interest.h
/* * @f ccnl-interest.h * @b CCN lite (CCNL), core header file (internal data structures) * * Copyright (C) 2011-17 University of Basel * Copyright (C) 2018 <NAME> * Copyright (C) 2018 Safety IO * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee ...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-dump.h
<reponame>azadeh-afzar/CCN-IRIBU /** * @file ccnl-dump.h * @brief CCN lite extension * * Copyright (C) 2012-18, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this p...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/src/ccnl-callbacks.c
<filename>src/ccnl-core/src/ccnl-callbacks.c /* * @f ccnl-callbacks.c * @b Callback functions * * Copyright (C) 2018 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission...
azadeh-afzar/CCN-IRIBU
src/ccnl-riot/include/ccnl-riot-logging.h
/* * @file ccnl-riot-logging.h * * @copyright Copyright (C) 2011-18, University of Basel * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * THE SO...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-sockunion.h
/* * @f ccnl-sockunion.h * @b CCN lite (CCNL), core header file (internal data structures) * * Copyright (C) 2011-17, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and t...
azadeh-afzar/CCN-IRIBU
src/ccnl-unix/include/ccnl-unix.h
<reponame>azadeh-afzar/CCN-IRIBU<filename>src/ccnl-unix/include/ccnl-unix.h /* * @f ccnl-unix.h * @b CCN lite, core CCNx protocol logic * * Copyright (C) 2011-18 University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provi...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/src/ccnl-crypto.c
<filename>src/ccnl-core/src/ccnl-crypto.c<gh_stars>10-100 /* * @f ccnl-ext-crypto.c * @b CCN lite extension, crypto logic (sign, verify, encrypt, decrypt) * * Copyright (C) 2013, <NAME>, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee...
azadeh-afzar/CCN-IRIBU
src/ccnl-utils/src/ccnl-crypto.c
<reponame>azadeh-afzar/CCN-IRIBU /* * @f util/ccnl-crypto.c * @b crypto functions for the CCN-lite utilities * * Copyright (C) 2013, <NAME>, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above *...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/src/ccnl-producer.c
/* * @f ccnl-producer.c * @b Producer functions * * Copyright (C) 2011-14, <NAME>, University of Basel * Copyright (C) 2015, 2016, 2018, <NAME>, INRIA * Copyright (C) 2018, <NAME>, MSA Safety * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby gr...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/src/ccnl-prefix.c
/* * @f ccnl-prefix.c * @b CCN lite, core CCNx protocol logic * * Copyright (C) 2011-18 University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear i...
azadeh-afzar/CCN-IRIBU
src/ccnl-utils/src/ccn-lite-cryptoserver.c
/* * @f util/ccn-lite-cryptoserver.c * @b cryptoserver for functions for the CCN-lite * * Copyright (C) 2013, <NAME>, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and t...
azadeh-afzar/CCN-IRIBU
src/ccnl-utils/include/ccnl-crypto.h
/** * @addtogroup CCNL-utils * @{ * * @file ccnl-crypto.h * @brief Crypto functions for CCN-lite utilities * * Copyright (C) 2013-2018, <NAME>, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the ab...
azadeh-afzar/CCN-IRIBU
src/ccnl-utils/src/ccnl-ext-hmac.c
#include "ccnl-ext-hmac.h" #ifdef USE_HMAC256 // RFC2104 keyval generation void ccnl_hmac256_keyval(uint8_t *key, size_t klen, uint8_t *keyval) // MUST have 64 bytes (BLOCK_LENGTH) { DEBUGMSG(TRACE, "ccnl_hmac256_keyval %zu bytes\n", klen); if (klen <= SHA256_BLOCK_LENGTH) { memcp...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-defs.h
/* * @f ccnl-defs.h * @b header file with constants for CCN lite (CCNL) * * Copyright (C) 2011-14, <NAME>, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permiss...
azadeh-afzar/CCN-IRIBU
test/ccnl-core/test_interest.c
/** * @file test-interest.c * @brief CCN lite - Tests for interest functions * * Copyright (C) 2018 Safety IO * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear...
azadeh-afzar/CCN-IRIBU
src/ccnl-core/include/ccnl-core.h
/* * @f ccnl-core.h * @b Core Lib Header file * * Copyright (C) 2015, <NAME>, University of Basel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copi...
QUST-Coder/Yui
LoginDialog.h
<reponame>QUST-Coder/Yui #ifndef LOGINDIALOG_H #define LOGINDIALOG_H //(*Headers(LoginDialog) #include <wx/stattext.h> #include <wx/textctrl.h> #include <wx/button.h> #include <wx/dialog.h> //*) class LoginDialog: public wxDialog { public: LoginDialog(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxD...
QUST-Coder/Yui
LoginConfig.h
#ifndef LOGINCONFIG_H #define LOGINCONFIG_H #include "src/YuiUtil.h" //(*Headers(LoginConfig) #include <wx/stattext.h> #include <wx/textctrl.h> #include <wx/button.h> #include <wx/dialog.h> //*) class LoginConfig: public wxDialog { public: LoginConfig(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDe...
QUST-Coder/Yui
UserFrame.h
#ifndef USERFRAME_H #define USERFRAME_H //(*Headers(UserFrame) #include <wx/stattext.h> #include <wx/frame.h> //*) class UserFrame: public wxFrame { public: UserFrame(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize); virtual ~UserFrame(); //(*Decl...
QUST-Coder/Yui
src/YuiUtil.h
<reponame>QUST-Coder/Yui #ifndef YUIUTIL_H_INCLUDED #define YUIUTIL_H_INCLUDED #include <iostream> #include <cstdio> #include <algorithm> #include <queue> #include <stack> #include <cmath> #include <wx/app.h> #include <wx/string.h> #include <cstring> #include <string> class YuiUtil { public: bool is_ipaddress(wxS...
QUST-Coder/Yui
src/YuiMain.h
/*************************************************************** * Name: YuiMain.h * Purpose: * Author: Richard (<EMAIL>) * Created: 2017-03-28 * Copyright: Richard () * License: **************************************************************/ #ifndef YUIMAIN_H_INCLUDED #define YUIMAIN_H_INCLUDED //(*...
QUST-Coder/Yui
src/YuiApp.h
/*************************************************************** * Name: YuiApp.h * Purpose: * Author: Richard (<EMAIL>) * Created: 2017-03-28 * Copyright: Richard () * License: **************************************************************/ #ifndef YUIAPP_H_INCLUDED #define YUIAPP_H_INCLUDED #define W...
publickanai/PLMScrollMenu
Example/Pods/Target Support Files/PLMScrollMenu/PLMScrollMenu-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double PLMScrollMenuVersionNumber; FOUNDATION_EXPORT const unsigned char PLMScrollMenuVersionString[];
publickanai/PLMScrollMenu
Example/Pods/Target Support Files/Pods-PLMScrollMenu_Tests/Pods-PLMScrollMenu_Tests-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_PLMScrollMenu_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_PLMScrollMenu_TestsVersionString[];
publickanai/PLMScrollMenu
Example/Pods/Target Support Files/Pods-PLMScrollMenu_Example/Pods-PLMScrollMenu_Example-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_PLMScrollMenu_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_PLMScrollMenu_ExampleVersionString[];
tomatolog/RadixSpline
include/rs/ctz_clz.h
<reponame>tomatolog/RadixSpline<gh_stars>0 #ifdef _MSC_VER #include <intrin.h> static inline int __builtin_ctz(unsigned x) { unsigned long ret; _BitScanForward(&ret, x); return (int)ret; } static inline int __builtin_ctzll(unsigned long long x) { unsigned long ret; _BitScanForward64(&ret, x); ...
brinoausrino/ofxPointilize
example/src/ofApp.h
<reponame>brinoausrino/ofxPointilize #pragma once #include "ofMain.h" #include "ofxPointilize.h" #include "ofxGui.h" class ofApp : public ofBaseApp{ public: void setup(); void update(); void draw(); void onRenderTypeChanged(int& t); void onDynamicSizeChanged(int& t); void onScal...
brinoausrino/ofxPointilize
src/ofxPointilize.h
#pragma once #include "ofMain.h" #define STRINGIFY(...) STRINGIFY_AUX(__VA_ARGS__) #define STRINGIFY_AUX(...) #__VA_ARGS__ class ofxPointilize { public: enum ScaleMode { /// \brief complete image is shown FIT, /// \brief image fills whole texture, image is cut off FILL, ///...
pelahi/Develop-with-OpenMP
Solutions/c/src/pi-omp-v3.c
/************************************* * Calculating Pi with using method: * * integral 4.0/(1+x^2) dx = p * * Serial Version * ************************************/ #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> // Reference value to estimate error doubl...
pelahi/Develop-with-OpenMP
Solutions/c/src/hello-omp.c
<reponame>pelahi/Develop-with-OpenMP #include <omp.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> void main (){ #pragma omp parallel { int thread_id =omp_get_thread_num(); char* hostname = (char*) malloc(256*sizeof(char)); gethostname(hostname,256*sizeof(char)); printf("Hello world from threa...
pelahi/Develop-with-OpenMP
Workbench/Exercise1/c/pi-serial.c
/******************************************************** * Calculating Pi with using midpoint rectangle method: * * integral 4.0/(1+x^2) dx = pi * * or * * summation (for i=0 to n) 4.0/(1+x_i^2) * * where x_i = (i + 1/2) * delta x * * Serial Version * **************...
pelahi/Develop-with-OpenMP
Solutions/c/src/pi-omp-v2.c
/************************************* * Calculating Pi with using method: * * integral 4.0/(1+x^2) dx = p * * Serial Version * ************************************/ #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> // Reference value to estimate error doubl...
pelahi/Develop-with-OpenMP
Solutions/c/src/pi-serial.c
/******************************************************** * Calculating Pi with using midpoint rectangle method: * * integral 4.0/(1+x^2) dx = pi * * or * * summation (for i=0 to n) 4.0/(1+x_i^2) * * where x_i = (i + 1/2) * delta x * * Serial Version * **************...
pelahi/Develop-with-OpenMP
Gauss_demo/Gauss_serial/include/gaussian.h
#include <stdio.h> #include <stdlib.h> #include <math.h> typedef struct{ int neq; int num_row,num_col; char* filename; }input; void* check_malloc(size_t, char*); void Read_command_line_arguments(int*,char**, input*); float** allocate_mat(int,int); void set_to_default_system(float**); void read_in_system(int, flo...
pelahi/Develop-with-OpenMP
Workbench/Preliminary/c/hello-omp.c
#include <unistd.h> #include <stdio.h> #include <stdlib.h> /* Exercise: Intent : Write a helloworld program with OpenMP. Goals: 1. Include OpenMP header 2. Within the scope of #pragma omp parallel a. Each thread queries it thread ID. b. Each thread then prints its thread ID. */ void main (){ int thread_...
pelahi/Develop-with-OpenMP
Solutions/c/src/pi-omp-v1.c
<gh_stars>0 /******************************************************** * Calculating Pi with using midpoint rectangle method: * * integral 4.0/(1+x^2) dx = pi * * or * * summation (for i=0 to n) 4.0/(1+x_i^2) * * where x_i = (i + 1/2) * delta x * * OpenMP Version 1 ...
onutech/npio
npio_test_c.c
<reponame>onutech/npio<filename>npio_test_c.c #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <assert.h> #include <math.h> #include <unistd.h> #include "npio.h" /* 100-long 64-bit signed array */ void test1() { int err; size_t i; int64_t *data, total; npio_Array arr...
onutech/npio
npio.h
#ifndef NPIO_H_ #define NPIO_H_ /****************************************************************************** Simple header-only routines for reading and writing numpy files. This header can be used with both C and C++ code. There are no external library dependencies. Just place the header in your include path to u...
onutech/npio
example1.c
/* Simple example to print the shape of an array in npy format. */ #include <stdio.h> #include "npio.h" int main() { int i; npio_Array array; npio_init_array(&array); npio_load("test1.npy", &array); printf("shape: "); for (i = 0; i < array.dim; ++i) printf("%ld ", array.shape[i]); printf("\n"); ...
luischuang/MeasureMotorSpeed
MeasureMotorSpeed/fftmr.h
/* * Copyright (c) 2008-2011 <NAME> (<NAME>), <EMAIL> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 2 or any later version. * * Redistribution and use in source ...
luischuang/MeasureMotorSpeed
MeasureMotorSpeed/usingdeclare.h
/* * Copyright (c) 2008-2011 <NAME> (<NAME>), <EMAIL> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 2 or any later version. * * Redistribution and use in source ...
luischuang/MeasureMotorSpeed
MeasureMotorSpeed/fftmr-impl.h
/* * Copyright (c) 2008-2011 <NAME> (<NAME>), <EMAIL> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 2 or any later version. * * Redistribution and use in source ...
luischuang/MeasureMotorSpeed
MeasureMotorSpeed/constants.h
<reponame>luischuang/MeasureMotorSpeed<filename>MeasureMotorSpeed/constants.h /* * Copyright (c) 2008-2011 <NAME> (<NAME>), <EMAIL> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, ei...
luischuang/MeasureMotorSpeed
MeasureMotorSpeed/window.h
/* * Copyright (c) 2008-2011 <NAME> (<NAME>), <EMAIL> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 2 or any later version. * * Redistribution and use in source ...
luischuang/MeasureMotorSpeed
MeasureMotorSpeed/DataType.h
<gh_stars>0 #pragma once template<typename Type> class TwoTuples { public: Type first; Type second; }; template<typename Type> class ThreeTuples { public: Type first; Type second; Type third; }; template<typename Type> class FourTuples { public: Type first; Type second; Type thir...
luischuang/MeasureMotorSpeed
MeasureMotorSpeed/fft-impl.h
<reponame>luischuang/MeasureMotorSpeed /* * Copyright (c) 2008-2011 <NAME> (<NAME>), <EMAIL> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 2 or any later version. ...
luischuang/MeasureMotorSpeed
MeasureMotorSpeed/fftpf.h
<gh_stars>0 /* * Copyright (c) 2008-2011 <NAME> (<NAME>), <EMAIL> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 2 or any later version. * * Redistribution and us...
jsbourdon/lwgl
LWGL/include/Resources/Texture.h
<filename>LWGL/include/Resources/Texture.h<gh_stars>1-10 #pragma once #include "Core/RefCountedObject.h" #include "Descriptors/TextureDescriptor.h" namespace lwgl { using namespace descriptors; namespace resources { class Texture : public RefCountedObject<Texture> { friend bas...
jsbourdon/lwgl
LWGL/include/Core/Macros.h
<gh_stars>1-10 #pragma once #include <type_traits> #ifndef ARRAYSIZE #define ARRAYSIZE(A) std::extent<decltype(A)>::value #endif #ifndef SAFE_RELEASE #define SAFE_RELEASE(p) { if (p) { (p)->Release(); (p) = nullptr; } } #endif #define SAFE_ADDREF(p) { if (p) { p->AddRef(); } } #ifdef _DEBUG #define CH...
jsbourdon/lwgl
LWGL/include/Core/IRenderer.h
#pragma once namespace lwgl { namespace core { class GfxDevice; class GfxDeviceContext; class RenderCore; class IRenderer { public: virtual bool Init(RenderCore *pRenderCore, GfxDevice* pDevice, GfxDeviceContext* pContext) = 0; virtual vo...
jsbourdon/lwgl
LWGL/include/Core/Constants.h
<filename>LWGL/include/Core/Constants.h #pragma once #include "3rd/DXUT/Core/DXUT.h" namespace lwgl { namespace core { constexpr float PI = DirectX::XM_PI; constexpr float TWO_PI = DirectX::XM_2PI; constexpr float ONE_ON_PI = DirectX::XM_1DIVPI; constexpr float ONE_ON_TWO_PI = ...
jsbourdon/lwgl
LWGL/include/Descriptors/SamplerStateDescriptor.h
#pragma once namespace lwgl { namespace descriptors { struct SamplerStateDescriptor { }; } }
jsbourdon/lwgl
LWGL/include/Resources/Mesh.h
#pragma once #include "3rd/DXUT/Optional/SDKmesh.h" #include "Core/RefCountedObject.h" namespace lwgl { namespace core { class GfxDevice; class GfxDeviceContext; } using namespace core; namespace resources { class Mesh final : public RefCountedObject<Mesh> { ...
jsbourdon/lwgl
LWGL/include/Core/RenderCore.h
#pragma once #include <vector> #include "Core/TypeDefs.h" #include "Core/Globals.h" #include "Core/RefCountedObject.h" namespace lwgl { namespace utilities { class Camera; } namespace input { class IInputReceiver; } namespace debugging { class DebuggingFeature...
jsbourdon/lwgl
LWGL/include/Descriptors/PixelFormats.h
#pragma once namespace lwgl { namespace descriptors { enum class PixelFormat { Unknown, R32G32B32A32_FLOAT, R32G32B32A32_UINT, R32G32B32A32_SINT, R32G32B32_FLOAT, R32G32B32_UINT, R32G32B32_SINT, R16G...
jsbourdon/lwgl
LWGL/include/Descriptors/InputLayoutDescriptor.h
<filename>LWGL/include/Descriptors/InputLayoutDescriptor.h #pragma once #include <vector> namespace lwgl { namespace resources { class Shader; } namespace descriptors { enum class InputLayoutSemantic { Position, Normal, Tangent, ...
jsbourdon/lwgl
LWGL/include/Resources/InputLayout.h
#pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace resources { class InputLayout final : public RefCountedObject<InputLayout> { friend base; friend class GfxDevice; friend class GfxDeviceContext; private: InputLa...
jsbourdon/lwgl
LWGL/include/Core/RefCountedObject.h
<gh_stars>1-10 #pragma once namespace lwgl { namespace resources { template<typename T> class RefCountedObject { public: virtual ~RefCountedObject(); uint32_t AddRef(); uint32_t Release(); protected: typedef RefCountedOb...
jsbourdon/lwgl
LWGL/include/Debugging/DebuggingFeatures.h
<filename>LWGL/include/Debugging/DebuggingFeatures.h<gh_stars>1-10 #pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace core { class RenderCore; class GfxDevice; class GfxDeviceContext; } namespace descriptors { struct SurfaceDescriptor; }...
jsbourdon/lwgl
LWGL/include/Resources/RasterizerState.h
#pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace resources { class RasterizerState final : public RefCountedObject<RasterizerState> { friend base; friend class GfxDevice; friend class GfxDeviceContext; private: ...
jsbourdon/lwgl
LWGL/include/Descriptors/ShaderDescriptor.h
<reponame>jsbourdon/lwgl<filename>LWGL/include/Descriptors/ShaderDescriptor.h #pragma once namespace lwgl { namespace descriptors { enum class ShaderType { Unknonwn = -1, VertexShader, FragmentShader, EnumCount }; struct ShaderDes...
jsbourdon/lwgl
LWGL/include/Utilities/FixedCamera.h
#pragma once #include "Core/RefCountedObject.h" #include "3rd/DXUT/Optional/DXUTCamera.h" namespace lwgl { using namespace core; namespace utilities { class FixedCamera { public: FixedCamera() = default; ~FixedCamera() = default; void Init(con...
jsbourdon/lwgl
LWGL/include/Resources/DepthStencilState.h
#pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace resources { class DepthStencilState final : public RefCountedObject<DepthStencilState> { friend base; friend class GfxDevice; friend class GfxDeviceContext; private: ...
jsbourdon/lwgl
LWGL/include/Core/TypeDefs.h
<reponame>jsbourdon/lwgl<gh_stars>1-10 #pragma once #include "3rd/DXUT/Core/DXUT.h" namespace lwgl { namespace core { typedef DirectX::XMMATRIX Matrix4x4; typedef DirectX::XMFLOAT3X3 Matrix3x3; typedef DirectX::XMVECTORF32 Vector4; typedef DirectX::XMFLOAT3 V...
jsbourdon/lwgl
LWGL/include/Pipeline/GfxPipeline.h
#pragma once #include "Core/RefCountedObject.h" #include "Descriptors/PipelineDescriptor.h" namespace lwgl { namespace resources { class InputLayout; class Shader; class BlendState; class DepthStencilState; class RasterizerState; } using namespace descriptors; ...
jsbourdon/lwgl
LWGL/include/Inputs/IInputReceiver.h
#pragma once namespace lwgl { namespace input { class IInputReceiver { public: virtual void OnKeyDown(uint32_t keyCode, bool firstDown) = 0; virtual void OnKeyUp(uint32_t keyCode) = 0; }; } }
jsbourdon/lwgl
LWGL/include/Resources/RenderTarget.h
#pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace resources { class Texture; class RenderTarget final : public RefCountedObject<RenderTarget> { friend base; friend class GfxDevice; friend class GfxDeviceContext; pri...
jsbourdon/lwgl
LWGL/include/Descriptors/DepthStencilStateDescriptor.h
<reponame>jsbourdon/lwgl #pragma once namespace lwgl { namespace descriptors { enum class ComparisonFunction { NEVER, LESS, EQUAL, LESS_EQUAL, GREATER, NOT_EQUAL, GREATER_EQUAL, ALWAYS, E...
jsbourdon/lwgl
LWGL/include/Resources/Buffer.h
#pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace descriptors { enum class BufferType; } using namespace descriptors; namespace resources { class Buffer final : public RefCountedObject<Buffer> { friend base; friend clas...
jsbourdon/lwgl
LWGL/include/Resources/SamplerState.h
<reponame>jsbourdon/lwgl #pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace resources { class SamplerState final : public RefCountedObject<SamplerState> { friend base; friend class GfxDevice; friend class GfxDeviceContext; pr...
jsbourdon/lwgl
LWGL/include/Resources/TextureArray.h
<gh_stars>1-10 #pragma once #include "Resources/Texture.h" namespace lwgl { namespace descriptors { enum class TextureType; } using namespace descriptors; namespace resources { class TextureArray final : public Texture { friend base; friend cla...
jsbourdon/lwgl
LWGL/include/Resources/Shader.h
#pragma once #include "Core/RefCountedObject.h" #include "Descriptors/ShaderDescriptor.h" namespace lwgl { using namespace descriptors; namespace resources { class Shader final : public RefCountedObject<Shader> { friend base; friend class GfxDevice; fri...
jsbourdon/lwgl
LWGL/include/Utilities/Camera.h
#pragma once #include "Core/RefCountedObject.h" #include "3rd/DXUT/Optional/DXUTCamera.h" namespace lwgl { using namespace core; namespace utilities { class Camera : public RefCountedObject<Camera> { friend base; friend class RenderCore; public: ...
jsbourdon/lwgl
LWGL/include/Core/GfxDeviceContext.h
#pragma once #include "Core/Constants.h" #include "Core/RefCountedObject.h" namespace lwgl { namespace descriptors { struct ClearDescriptor; } namespace resources { class Mesh; class Buffer; class SamplerState; class Texture; class TextureArray; ...
jsbourdon/lwgl
LWGL/include/Descriptors/SurfaceDescriptor.h
<reponame>jsbourdon/lwgl #pragma once namespace lwgl { namespace descriptors { enum class PixelFormat; struct SurfaceDescriptor { uint32_t Width; uint32_t Height; uint32_t SampleCount; PixelFormat Format; }; } }
jsbourdon/lwgl
LWGL/include/Debugging/DebugResourceManager.h
<gh_stars>1-10 #pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace descriptors { enum class PixelFormat; struct SurfaceDescriptor; } using namespace core; using namespace descriptors; namespace debugging { class DebugResourceManager : public...
jsbourdon/lwgl
LWGL/include/Descriptors/ClearDescriptor.h
#pragma once namespace lwgl { using namespace core; namespace descriptors { struct ClearDescriptor { Vector4 ColorClearValue; float DepthClearValue; uint8_t StencilClearValue; bool ClearColor; bool Clea...
jsbourdon/lwgl
LWGL/include/Core/GfxDevice.h
#pragma once #include "RefCountedObject.h" namespace lwgl { namespace pipeline { class GfxPipeline; } namespace resources { class Mesh; class Buffer; class Shader; class BlendState; class InputLayout; class DepthStencilState; class T...
jsbourdon/lwgl
LWGL/include/pch.h
<reponame>jsbourdon/lwgl #pragma once #pragma comment( lib, "Usp10.lib" ) #define DXUT_AUTOLIB #include <cstdint> #include <malloc.h> #include <assert.h> #include <d3dcompiler.h> #include "3rd/DXUT/Core/DXUT.h" #include "3rd/DXUT/Optional/SDKmisc.h" #include "3rd/DXUT/Optional/DXUTgui.h" #include "Core/Macros.h" #in...
jsbourdon/lwgl
LWGL/include/Resources/BlendState.h
#pragma once #include "Core/RefCountedObject.h" namespace lwgl { namespace resources { class BlendState final : public RefCountedObject<BlendState> { friend base; friend class GfxDevice; friend class GfxDeviceContext; private: BlendStat...
jsbourdon/lwgl
LWGL/include/Descriptors/PipelineDescriptor.h
<filename>LWGL/include/Descriptors/PipelineDescriptor.h #pragma once #include "InputLayoutDescriptor.h" #include "BlendStateDescriptor.h" #include "ShaderDescriptor.h" #include "DepthStencilStateDescriptor.h" #include "RasterizerStateDescriptor.h" #include "PixelFormats.h" namespace lwgl { using namespace resour...
Piascore/onedrive-sdk-ios
Examples/iOSExplorer/iOSExplorer/iOSExplorer-Bridging-Header.h
<gh_stars>0 // // Use this file to import your target's public headers that you would like to expose to Swift. // #import "ODXItemCollectionViewController.h" #import <OneDriveSDK/OneDriveSDK.h>
RogerNogue/MVJ_Engine_base
QuadTreeGnoblin.h
<filename>QuadTreeGnoblin.h #ifndef __QuadTreeGnoblin_H__ #define __QuadTreeGnoblin_H__ #include "MathGeoLib/include/Geometry/AABB.h" #include <vector> class GameObject; class QuadNode; class QuadTreeGnoblin { public: QuadTreeGnoblin(); ~QuadTreeGnoblin(); void Create(AABB limits); void Clear(); void Insert(GameOb...
RogerNogue/MVJ_Engine_base
ComponentMaterial.h
<reponame>RogerNogue/MVJ_Engine_base<gh_stars>0 #ifndef __ComponentMaterial_H__ #define __ComponentMaterial_H__ #include "Component.h" #include "MathGeoLib.h" class JSON_Value; class ComponentMaterial : public Component { public: ComponentMaterial(GameObject* dad); ComponentMaterial(JSON_Value* matFile, GameObject* ...
RogerNogue/MVJ_Engine_base
ComponentTransform.h
#ifndef __ComponentTransform_H__ #define __ComponentTransform_H__ #include "Component.h" #include "MathGeoLib.h" class JSON_Value; class ComponentTransform : public Component { public: ComponentTransform(GameObject* dad); ComponentTransform(JSON_Value* transfFile, GameObject* dad); ~ComponentTransform(); update_st...
RogerNogue/MVJ_Engine_base
ModuleProgram.h
#ifndef __ModuleProgram_H__ #define __ModuleProgram_H__ #include "Module.h" #include "GL/glew.h" class ModuleProgram : public Module { public: ModuleProgram(); ~ModuleProgram(); bool Init() override; GLuint loadShaders(char* dataVertex, char* dataFragment); GLuint programTexture; GLuint programGeo...
RogerNogue/MVJ_Engine_base
ModuleModelLoader.h
<reponame>RogerNogue/MVJ_Engine_base<filename>ModuleModelLoader.h #ifndef __ModuleModelLoader_H__ #define __ModuleModelLoader_H__ #include "Module.h" #include <vector> //#include "MathGeoLib.h" class aiScene; class aiMesh; class aiMaterial; class ComponentMesh; class ComponentMaterial; class ComponentShape; class Gam...
RogerNogue/MVJ_Engine_base
ComponentMesh.h
#ifndef __ComponentMesh_H__ #define __ComponentMesh_H__ #include "Component.h" #include "MathGeoLib.h" class JSON_Value; class ComponentMesh : public Component { public: ComponentMesh(GameObject* dad); ComponentMesh(JSON_Value* mesh, GameObject* dad); ~ComponentMesh(); bool CleanUp() override; void saveMesh(JSON_...