repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
donqustix/colvox-cpp
src/config_block.h
#ifndef CONFIGBLOCK_H #define CONFIGBLOCK_H #include <string> #include <map> namespace minecpp { struct ConfigBlock { std::map<std::string, std::string> data; std::map<std::string, ConfigBlock> blocks; }; } #endif
donqustix/colvox-cpp
src/shader_program.h
<gh_stars>0 #ifndef SHADERPROGRAM_H #define SHADERPROGRAM_H #include "resource.h" #include <GL/glew.h> #include <utility> #include <vector> #include <string> namespace minecpp { class ShaderProgram : public Resource { std::vector<GLuint> shaders; GLuint handle; void deleteShaders() ...
donqustix/colvox-cpp
src/service.h
#ifndef SERVICE_H #define SERVICE_H #include <condition_variable> #include <mutex> namespace minecpp { class Service { protected: std::condition_variable cv; std::mutex mx; private: bool running = true; bool done = false; protected: virtual void working() ...
donqustix/colvox-cpp
src/resource.h
<gh_stars>0 #ifndef RESOURCE_H #define RESOURCE_H namespace minecpp { struct Resource { virtual ~Resource() = default; }; } #endif
donqustix/colvox-cpp
src/gaussian_blur_post_processing.h
<gh_stars>0 #ifndef GAUSSIANBLURPOSTPROCESSING_H #define GAUSSIANBLURPOSTPROCESSING_H #include <memory> namespace minecpp { class Framebuffer; class Texture; class ShaderProgram; class ResourceContainer; class RenderData; class GaussianBlurPostProcessing { std::unique_ptr<Framebuf...
donqustix/colvox-cpp
src/chunk_generator.h
<filename>src/chunk_generator.h #ifndef CHUNKGENERATOR_H #define CHUNKGENERATOR_H namespace minecpp { class ChunkLocation; class Chunk; class ResourceContainer; struct ChunkGenerator { virtual ~ChunkGenerator() = default; virtual Chunk* generate(const ChunkLocation& chunkLocaton, R...
donqustix/colvox-cpp
src/application.h
<gh_stars>0 #ifndef APPLICATION_H #define APPLICATION_H #include <memory> namespace minecpp { class Window; class ResourceContainer; class Application { struct SDL; std::unique_ptr<SDL> sdl; std::unique_ptr<Window> window; class GLContext; std::unique_ptr<GLC...
donqustix/colvox-cpp
src/raw_shader_data.h
#ifndef RAWSHADERDATA_H #define RAWSHADERDATA_H #include <utility> #include <GL/glew.h> namespace minecpp { class RawShaderData { GLuint vao; GLuint vbo; protected: virtual void fillBuffer() noexcept = 0; virtual void bindAttributePointers() noexcept = 0; public: ...
donqustix/colvox-cpp
src/chunk_update_service.h
#ifndef CHUNKUPDATESERVICE_H #define CHUNKUPDATESERVICE_H #include "mesh_chunk_vertices.h" #include "voxel_update.h" #include "service.h" #include <queue> namespace minecpp { class Chunk; class MeshChunkBuilder; class ChunkUpdateService : public Service { public: struct ChunkUpdate ...
donqustix/colvox-cpp
src/chunk_load_service.h
<gh_stars>0 #ifndef CHUNKLOADSERVICE_H #define CHUNKLOADSERVICE_H #include "chunk_location.h" #include "service.h" #include <memory> #include <queue> namespace minecpp { class ChunkGenerator; class Chunk; class ResourceContainer; class ChunkLoadService : public Service { std::queue<Chunk...
donqustix/colvox-cpp
src/voxel_update.h
<gh_stars>0 #ifndef VOXELUPDATE_H #define VOXELUPDATE_H #include <cstddef> namespace minecpp { struct VoxelUpdate { ptrdiff_t index; unsigned voxel; }; } #endif
donqustix/colvox-cpp
src/player.h
<gh_stars>0 #ifndef PLAYER_H #define PLAYER_H #include <glm/vec3.hpp> #include <memory> namespace minecpp { class Camera; class Player { std::unique_ptr<Camera> camera; public: explicit Player(const glm::vec3& position) noexcept; Player(Player&&) noexcept; ~Player();...
donqustix/colvox-cpp
src/chunk_default_generator.h
<reponame>donqustix/colvox-cpp #ifndef CHUNKDEFAULTGENERATOR_H #define CHUNKDEFAULTGENERATOR_H #include "chunk_generator.h" #include "constants.h" namespace minecpp { class ChunkDefaultGenerator : public ChunkGenerator { public: Chunk* generate(const ChunkLocation& chunkLocaton, ResourceContainer&...
donqustix/colvox-cpp
src/mesh_chunk_vertices.h
#ifndef MESHCHUNKVERTICES_H #define MESHCHUNKVERTICES_H #include "vertices.h" #include <vector> namespace minecpp { struct MeshChunkVertices { std::vector<VertexP3FRGBA8> v_default; }; } #endif
donqustix/colvox-cpp
src/chunk_model.h
#ifndef CHUNKMODEL_H #define CHUNKMODEL_H #include "chunk_model_part.h" #include <glm/mat4x4.hpp> namespace minecpp { struct MeshChunkVertices; class ResourceContainer; class ChunkLocation; class RenderData; class ChunkModel { ChunkModelPart modelPartDefault; glm::mat4 model...
donqustix/colvox-cpp
src/constants.h
#ifndef CONSTANTS_H #define CONSTANTS_H namespace minecpp { namespace constants { constexpr int BLOCK_SIZE = 64; constexpr int CHUNK_WIDTH = 16; constexpr int CHUNK_HEIGHT = 256; constexpr int MAX_LIGHT_LEVEL = 15; constexpr float PLAYER_MOVEMEN...
donqustix/colvox-cpp
src/mesh_chunk_builder.h
<reponame>donqustix/colvox-cpp<filename>src/mesh_chunk_builder.h<gh_stars>0 #ifndef MESHCHUNKBUILDER_H #define MESHCHUNKBUILDER_H #include <cstddef> #include <vector> #include <queue> namespace minecpp { struct MeshChunkVertices; struct VertexP3FRGBA8; struct RGBA8; class Chunk; class MeshChunkB...
donqustix/colvox-cpp
src/renderbuffer.h
<gh_stars>0 #ifndef RENDERBUFFER_H #define RENDERBUFFER_H #include <GL/glew.h> #include <utility> namespace minecpp { class Renderbuffer { GLuint handle; public: friend void swap(Renderbuffer& renderbuffer1, Renderbuffer& renderbuffer2) noexcept { using std::swap; ...
donqustix/colvox-cpp
src/vertices.h
#ifndef VERTICES_H #define VERTICES_H #include <GL/glew.h> namespace minecpp { struct RGBA8 { GLubyte r; GLubyte g; GLubyte b; GLubyte a; }; struct RGB8 { GLubyte r; GLubyte g; GLubyte b; }; struct UV8 { GLubyte u; ...
donqustix/colvox-cpp
src/chunk_model_part.h
<filename>src/chunk_model_part.h #ifndef CHUNKMODELPART_H #define CHUNKMODELPART_H //#include "mesh.h" //#include "shader_program.h" #include <memory> namespace minecpp { template<typename T> class Mesh; class ShaderProgram; struct VertexP3FRGBA8; struct ChunkModelPart { std::uniqu...
donqustix/colvox-cpp
src/window.h
#ifndef WINDOW_H #define WINDOW_H #include <SDL2/SDL_video.h> #include <utility> #include <string> namespace minecpp { class Window { SDL_Window* handle; int width; int height; public: friend void swap(Window& window1, Window& window2) noexcept { using...
donqustix/colvox-cpp
src/framebuffer.h
<filename>src/framebuffer.h #ifndef FRAMEBUFFER_H #define FRAMEBUFFER_H #include <GL/glew.h> #include <utility> namespace minecpp { class Framebuffer { GLuint handle; public: friend void swap(Framebuffer& framebuffer1, Framebuffer& framebuffer2) noexcept { using std::...
donqustix/colvox-cpp
src/textured_rect_mesh.h
#ifndef TEXTUREDRECTMESH_H #define TEXTUREDRECTMESH_H #include "mesh.h" namespace minecpp { class TexturedRectMesh : public Mesh<VertexP2BUV8> { public: TexturedRectMesh() noexcept; }; } #endif
donqustix/colvox-cpp
src/chunk.h
<filename>src/chunk.h #ifndef CHUNK_H #define CHUNK_H #include "chunk_location.h" #include "constants.h" #include "voxel_update.h" #include <utility> #include <memory> #include <vector> namespace minecpp { class ResourceContainer; class ChunkModel; class Chunk { public: struct Neightbors...
donqustix/colvox-cpp
src/texture.h
<filename>src/texture.h #ifndef TEXTURE_H #define TEXTURE_H #include <GL/glew.h> #include <utility> namespace minecpp { class Texture { GLuint handle; public: friend void swap(Texture& texture1, Texture& texture2) noexcept { using std::swap; swap(texture1...
donqustix/colvox-cpp
src/render_data.h
<filename>src/render_data.h #ifndef RENDERDATA_H #define RENDERDATA_H #include <glm/mat4x4.hpp> #include <memory> namespace minecpp { class TexturedRectMesh; class RenderData { std::unique_ptr<TexturedRectMesh> texturedRectMesh; glm::mat4 projectionMatrix; glm::mat4 viewMatrix; ...
donqustix/colvox-cpp
src/post_processing.h
<filename>src/post_processing.h #ifndef POSTPROCESSING_H #define POSTPROCESSING_H #include <memory> namespace minecpp { class ResourceContainer; class Texture; class RenderData; class HdrPostProcessing; class ExtractBrightsPostProcessing; class GaussianBlurPostProcessing; class PostProces...
donqustix/colvox-cpp
src/voxel.h
<reponame>donqustix/colvox-cpp<filename>src/voxel.h #ifndef VOXEL_H #define VOXEL_H namespace minecpp { namespace voxel { enum Types { AIR = 0, DEFAULT = 1, LIGHT = 2, NUM_TYPES }; constexpr unsigned get...
donqustix/colvox-cpp
src/camera.h
<reponame>donqustix/colvox-cpp #ifndef CAMERA_H #define CAMERA_H #include <glm/vec3.hpp> #include <glm/mat4x4.hpp> namespace minecpp { class Camera { public: struct Basis { glm::vec3 right; glm::vec3 up; glm::vec3 forward; static Basis creat...
studyinfoyht/MsgSent
MsgSent/ABC_Class/B.h
<gh_stars>0 // // B.h // Test // // Created by Michael on 2018/4/19. // Copyright © 2018年 michaelyht. All rights reserved. // #import <Foundation/Foundation.h> @interface B : NSObject @end
studyinfoyht/MsgSent
MsgSent/ABC_Class/C.h
// // C.h // Test // // Created by Michael on 2018/4/19. // Copyright © 2018年 michaelyht. All rights reserved. // #import "A.h" @interface C : A - (void)sleepA; @end
studyinfoyht/MsgSent
MsgSent/ABC_Class/A.h
<reponame>studyinfoyht/MsgSent // // A.h // Test // // Created by Michael on 2018/4/19. // Copyright © 2018年 michaelyht. All rights reserved. // #import <Foundation/Foundation.h> @interface A : NSObject - (void)eat; @end
VictorMNA/LiquidMVC
LiquidMVC.h
<filename>LiquidMVC.h<gh_stars>0 /* Design and created by Blascarr EncoderMe Name : Blascarr Description: EncoderMenu.h version : 1.0 Blascarr invests time and resources providing this open source code like some other libraries, please respect the job and support open-source software. Wr...
VictorMNA/LiquidMVC
MenuController.h
// TODO: add header #ifndef MENUCONTROLLER_H #define MENUCONTROLLER_H class MenuController { public: enum class Event { NONE, SELECT, PREV, NEXT }; virtual void Init(void); virtual MenuController::Event Read(void); }; #endif
VictorMNA/LiquidMVC
MenuControllerEncoder.h
// TODO: add header #ifndef MENUCONTROLLERENCODER_H #define MENUCONTROLLERENCODER_H #include "MenuController.h" #include "EncoderMenu.h" class MenuControllerEncoder: public MenuController { public: MenuControllerEncoder(uint8_t pinA, uint8_t pinB, uint8_t pinSW, bool clockwise = true, bool pullup = false); ...
VictorMNA/LiquidMVC
examples/LiquidMVC_Encoder_UserRenderer/OledEasing.h
<gh_stars>0 // TODO: add header #ifndef OLEDEASING_H #define OLEDEASING_H #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include "MenuRenderer.h" class OledEasing: public MenuRenderer { public: OledEasing(Adafruit_SSD1306 &oled_object, int x_pixels, int y_pixels, int font_height); void Init(void...
VictorMNA/LiquidMVC
MenuRendererLcd.h
<reponame>VictorMNA/LiquidMVC // TODO: add header #ifndef MENURENDERERLCD_H #define MENURENDERERLCD_H #include <LiquidCrystal.h> #include "MenuRenderer.h" class MenuRendererLcd: public MenuRenderer { public: MenuRendererLcd(LiquidCrystal &lcd_object, int cols, int rows); void Init(void) override {}; v...
VictorMNA/LiquidMVC
MenuRenderer.h
// TODO: add header #ifndef MENURENDERER_H #define MENURENDERER_H #include <Vector.h> class MenuRenderer { public: virtual void Init(void); virtual void Render(const Vector<MenuOption*>& array, const int& selected, const bool& editing); }; #endif
VictorMNA/LiquidMVC
MenuOption.h
// TODO: add header #ifndef MENUOPTION_H #define MENUOPTION_H #include <limits.h> #include <Vector.h> typedef void (*CallbackFunction)(void); class MenuOption { public: enum class Type { NONE, INT_VALUE, ACTION, SUBMENU }; MenuOption(String name, Type type = Ty...
VictorMNA/LiquidMVC
MenuRendererSerial.h
// TODO: add header #ifndef MENURENDERERSERIAL_H #define MENURENDERERSERIAL_H #include "MenuRenderer.h" class MenuRendererSerial: public MenuRenderer { public: MenuRendererSerial(Stream& stream); void Init(void) override; void Render(const Vector<MenuOption*>& array, const int& selected, const bool& edi...
VictorMNA/LiquidMVC
MenuControllerSerial.h
// TODO: add header #ifndef MENUCONTROLLERSERIAL_H #define MENUCONTROLLERSERIAL_H #include "MenuController.h" class MenuControllerSerial: public MenuController { public: MenuControllerSerial(Stream& Stream); void Init(void) override; MenuController::Event Read(void) override; private: enum clas...
VictorMNA/LiquidMVC
MenuRendererOled.h
// TODO: add header #ifndef MENURENDEREROLED_H #define MENURENDEREROLED_H #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include "MenuRenderer.h" class MenuRendererOled: public MenuRenderer { public: MenuRendererOled(Adafruit_SSD1306 &oled_object, int x_pixels, int y_pixels, int font_height); vo...
Saruul-Ulzii/DeckTransition
Example/Pods/Target Support Files/Pods-DeckTransition_Tests/Pods-DeckTransition_Tests-umbrella.h
<reponame>Saruul-Ulzii/DeckTransition #ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double Pods_DeckTransition_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_DeckTransition_TestsVersionString[];
Saruul-Ulzii/DeckTransition
Example/Pods/Target Support Files/DeckTransition/DeckTransition-umbrella.h
<reponame>Saruul-Ulzii/DeckTransition #ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double DeckTransitionVersionNumber; FOUNDATION_EXPORT const unsigned char DeckTransitionVersionString[];
Saruul-Ulzii/DeckTransition
Example/Pods/Target Support Files/Pods-DeckTransition_Example/Pods-DeckTransition_Example-umbrella.h
<gh_stars>1-10 #ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double Pods_DeckTransition_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_DeckTransition_ExampleVersionString[];
PinkHappyBear/C_lab
lab01/main.c
#include<stdio.h> #include<math.h> #include <stdlib.h> main() { double a, x, G, F, Y; printf("Enter a:"); scanf("%lf", &a); printf("Enter x:"); scanf("%lf", &x); G = (9 * (20 * pow(a, 2) - 31 * a * x + 12 * pow(x, 2))) / (10 * pow(a, 2) - 17 * a * x + 6 * pow(x, 2)); printf("result:"); ...
PinkHappyBear/C_lab
lab03/main.c
#include <stdio.h> #include<math.h> #include <stdlib.h> int main() { double a, x, G, F, Y; int q; printf("Добро пожаловать в lab03\n"); do { printf("Для выхода из программы нажмите 0\n"); printf("Для рассчёта формулы G нажмите 1\n"); printf("Для рассчёта формулы F нажми...
vi/ldb
ldb.h
#ifndef LDB_H_ #define LDB_H_ #include <iostream> #include <iomanip> #include <sstream> #include <string> #include <vector> #include <map> #include <regex> #include <getopt.h> #include <sys/ioctl.h> #define LDB_VERSION "0.0.2" extern "C" { #include "deps/linenoise/linenoise.h" } #include "leveldb/db.h" using nam...
baldengineers/mod-1
mp/src/game/client/ISoundPanel.h
<gh_stars>0 class ISoundPanel { public: virtual void Create(vgui::VPANEL parent) = 0; virtual void Destroy(void) = 0; virtual void Activate(void) = 0; }; extern ISoundPanel* soundpanel;
ADDubovik/SmartSingletone-concept
src/SingleThreaded/Payload.h
<filename>src/SingleThreaded/Payload.h #pragma once #include <set> class Payload { public: Payload() = default; ~Payload() = default; Payload(const Payload &) = delete; Payload(Payload &&) = delete; Payload& operator=(const Payload &) = delete; Payload& operator=(Payload &&) = delete; void add(int v...
ADDubovik/SmartSingletone-concept
src/SingleThreaded/CallbackPayload.h
<gh_stars>1-10 #pragma once #include <functional> class CallbackPayload { public: CallbackPayload() = default; ~CallbackPayload() = default; CallbackPayload(const CallbackPayload &) = delete; CallbackPayload(CallbackPayload &&) = delete; CallbackPayload& operator=(const CallbackPayload &) = delete; Cal...
ADDubovik/SmartSingletone-concept
src/SingleThreaded/SingletonWeak.h
#pragma once #include <memory> #include <iostream> template<typename T> class SingletonWeak : public T { public: ~SingletonWeak() { std::cout << "~SingletonWeak()" << std::endl; } SingletonWeak(const SingletonWeak &) = delete; SingletonWeak(SingletonWeak &&) = delete; SingletonWeak& operator=(const...
ADDubovik/SmartSingletone-concept
src/SingleThreaded/SingletonShared.h
#pragma once #include <memory> #include <iostream> template<typename T> class SingletonShared : public T { public: ~SingletonShared() { std::cout << "~SingletonShared()" << std::endl; } SingletonShared(const SingletonShared &) = delete; SingletonShared(SingletonShared &&) = delete; SingletonShared&...
ADDubovik/SmartSingletone-concept
src/SingleThreaded/SingletonClassic.h
#pragma once #include <iostream> template<typename T> class SingletonClassic : public T { public: ~SingletonClassic() { std::cout << "~SingletonClassic()" << std::endl; } SingletonClassic(const SingletonClassic &) = delete; SingletonClassic(SingletonClassic &&) = delete; SingletonClassic& operator=...
ADDubovik/SmartSingletone-concept
src/SingleThreaded/SomethingWithVeryImportantDestructor.h
<gh_stars>1-10 #pragma once #include <iostream> class SomethingWithVeryImportantDestructor { public: SomethingWithVeryImportantDestructor() { std::cout << "SomethingWithVeryImportantDestructor()" << std::endl; } ~SomethingWithVeryImportantDestructor() { std::cout << "~SomethingWithVeryImportantDest...
xls/resharper-code-analysis-action
test/sample/sample/benchmark.h
<filename>test/sample/sample/benchmark.h /* * Benchmark tool, for Win32/POSIX, fully C89 compliant. */ #ifndef BENCHMARK_H_DEFINED #define BENCHMARK_H_DEFINED //#ifdef __cplusplus //extern "C" { //#endif #include <functional> /** * Benchmark what is done in the function passed on the first parameter. * @param fu...
0xdw/dbn-compiler
src/constants.h
#ifndef CONSTANTS_H #define CONSTANTS_H #define EXIT system("pause"); exit(1); #define DRAWING "Drawing" #define CALL_EXPRESSION "CallExpression" #define NUMBER_LITERAL "NumberLiteral" #define NEW_LINE "NEW_LINE" // XML namespaces #define NS_XMLNS "http://www.w3.org/2000/svg" // Required for image/svg+xml files. #def...
0xdw/dbn-compiler
src/syntax_analyzer.h
#ifndef SYNTAX_ANALYZER_H #define SYNTAX_ANALYZER_H #include "exception.h" #include "utils.h" class SyntaxAnalyzer: public Exception { public: SyntaxAnalyzer(); ~SyntaxAnalyzer(); int column = 1; int line = 1; void analyze_char(const char chr); void analyze...
0xdw/dbn-compiler
src/transformer.h
#ifndef TRANSFORMER_H #define TRANSFORMER_H #include <vector> #include <string> #include "syntax_analyzer.h" #include "parser.h" #include "lexer.h" class Transformer: public SyntaxAnalyzer { public: Transformer(); ~Transformer(); struct SVG_AST { std::string tag; s...
0xdw/dbn-compiler
src/lexer.h
#ifndef LEXER_H #define LEXER_H #include <string> #include <vector> #include "syntax_analyzer.h" class Lexer : public SyntaxAnalyzer { public: Lexer(); ~Lexer(); struct Token { const char* type; std::string value; }; std::vector<T...
0xdw/dbn-compiler
src/code_generator.h
<filename>src/code_generator.h #ifndef CODE_GENERATOR_H #define CODE_GENERATOR_H #include <string> #include "transformer.h" class CodeGenerator { public: CodeGenerator(); ~CodeGenerator(); std::string generate(Transformer::SVG_AST ast); }; #endif // CODE_GENERATOR_H
0xdw/dbn-compiler
src/compiler.h
<filename>src/compiler.h #ifndef COMPILER_H #define COMPILER_H #include <string> #include "lexer.h" #include "parser.h" #include "transformer.h" #include "code_generator.h" #include "file.h" class DBNCompiler: public Lexer, public Parser, public Transformer, public CodeGenerator { public: DBNCompiler(); ...
0xdw/dbn-compiler
src/code_optimizer.h
#ifndef CODE_OPTIMIZER_H #define CODE_OPTIMIZER_H #include <vector> #include "lexer.h" class CodeOptimizer { public: CodeOptimizer(); ~CodeOptimizer(); void optimize_tokens(std::vector<Lexer::Token>& tokens); }; #endif // CODE_OPTIMIZER_H
0xdw/dbn-compiler
src/exception.h
#ifndef EXCEPTION_H #define EXCEPTION_H #include <iostream> #include "constants.h" class Exception { public: Exception(); ~Exception(); void parse_error(const char* msg); void range_error(const char* kwd, const char* msg); template <class T> void syntax_error(cons...
0xdw/dbn-compiler
src/utils.h
<gh_stars>0 #ifndef UTILS_H #define UTILS_H namespace Utils { bool is_alpha(const char& chr); bool is_digit(const char& chr); bool is_space(const char& chr); const char* lookahead(const char* src); const char* is_delimiter(const char* src); const char* end_of_line(const char* src); te...
0xdw/dbn-compiler
src/file.h
#ifndef FILE_H #define FILE_H const std::string get_file_content(const char* file_name); void write_file(std::string source, const char* file_name); #endif // FILE_H
0xdw/dbn-compiler
src/parser.h
#ifndef PARSER_H #define PARSER_H #include <string> #include <vector> #include "exception.h" #include "syntax_analyzer.h" #include "code_optimizer.h" #include "lexer.h" typedef std::vector<Lexer::Token> token_stream; class Parser: public SyntaxAnalyzer, public CodeOptimizer { public: Parser(); ~P...
nacker/SegmentPageController
LZSegmentPageController/Classes/LZPageViewController.h
<filename>LZSegmentPageController/Classes/LZPageViewController.h // // LZPageViewController.h // LZSegmentPageController // // Created by nacker on 16/3/25. // Copyright © 2016年 帶頭二哥 QQ:648959. All rights reserved. // #import <UIKit/UIKit.h> @interface LZPageViewController : UIViewController - (instancetype)init...
nacker/SegmentPageController
LZSegmentPageController/PageCell2Controller.h
<filename>LZSegmentPageController/PageCell2Controller.h // // PageCell2Controller.h // LZSegmentPageController // // Created by nacker on 16/3/25. // Copyright © 2016年 帶頭二哥 QQ:648959. All rights reserved. // #import <UIKit/UIKit.h> @interface PageCell2Controller : UITableViewController @end
nacker/SegmentPageController
LZSegmentPageController/Classes/LZPageMainCell.h
<reponame>nacker/SegmentPageController // // LZPageMainCell.h // HXClient // // Created by nacker on 16/3/23. // Copyright © 2016年 帶頭二哥 QQ:648959. All rights reserved. // #import <UIKit/UIKit.h> @interface LZPageMainCell : UICollectionViewCell @property (nonatomic,strong) UIViewController *indexController; @end...
nacker/SegmentPageController
LZSegmentPageController/PageCell1Controller.h
<reponame>nacker/SegmentPageController<gh_stars>10-100 // // PageCell1Controller.h // LZSegmentPageController // // Created by nacker on 16/3/25. // Copyright © 2016年 帶頭二哥 QQ:648959. All rights reserved. // #import <UIKit/UIKit.h> @interface PageCell1Controller : UITableViewController @end
nacker/SegmentPageController
LZSegmentPageController/Classes/LZPageContentView.h
<reponame>nacker/SegmentPageController // // LZPageContentView.h // HXClient // // Created by nacker on 16/3/23. // Copyright © 2016年 帶頭二哥 QQ:648959. All rights reserved. // #import <UIKit/UIKit.h> @class LZPageContentView; @protocol LZPageContentViewDelegate <NSObject> @optional - (void)pageContentView:(LZPag...
northsydneybears/Swift-JWK-to-PEM
Sources/CJWKPEMOpenSSL/include/c_jwkpem_openssl.h
<filename>Sources/CJWKPEMOpenSSL/include/c_jwkpem_openssl.h #ifndef C_JWKPEM_OPENSSL_H #define C_JWKPEM_OPENSSL_H #include <openssl/conf.h> #include <openssl/evp.h> #include <openssl/err.h> #include <openssl/bio.h> #include <openssl/ssl.h> #include <openssl/md4.h> #include <openssl/md5.h> #include <openssl/sha.h> #inc...
miunau/lame-wasm
src/lame_native_bindings.c
// bindings to expose lame library as wasm module // credits to https://github.com/Kagami/vmsg/blob/master/vmsg.c // modified for streamed encoding #include <stdbool.h> #include <stdlib.h> #include <stdint.h> #include <lame/lame.h> #define WASM_EXPORT __attribute__((visibility("default"))) #define MAX_SAMPLES 65536 #...
francesco-source/TESI_TRIENNALE
Feb2021/analisiFoot.h
<reponame>francesco-source/TESI_TRIENNALE ////////////////////////////////////////////////////////// // This class has been automatically generated on // Wed Mar 2 13:01:09 2022 by ROOT version 6.20/02 // from TTree Tree/Tree // found on file: tree4306_newgeom_FEB2021.root /////////////////////////////////////////////...
Hayabusa6863/T-motor_controller
motor_status/motor_status.h
#ifndef MOTOR_STATUS_H_ #define MOTOR_STATUS_H_ #include "mbed.h" #include <cstdint> class Motor_Status{ private: uint8_t can_id; // モータのCAN_ID float position; // 現在位置 float velocity; // 現在速度 float effort; // 現在トルク float effort_ref; // 指令トルク public: Motor_Status(uint8_t...
Hayabusa6863/T-motor_controller
torque_step_command_withoutClass.cpp.h
<filename>torque_step_command_withoutClass.cpp.h<gh_stars>0 // T-motorをトルク指令で制御するプログラム // ROSを使うと通信速度がボトルネックになるのでマイコンで実装. #include "PinNames.h" #include "mbed.h" #include "basic_op.h" #include "motor_config.h" #include <cstdint> #if !DEVICE_CAN #error [NOT_SUPPORTED] CAN not supported for this target # endif // Pin ...
Hayabusa6863/T-motor_controller
motor_config.h
<reponame>Hayabusa6863/T-motor_controller<gh_stars>0 #ifndef MOTOR_CONFIG_H_ #define MOTOR_CONFIG_H_ #define P_MIN -12.5f #define P_MAX 12.5f #define V_MIN -45.0f #define V_MAX 45.0f #define T_MIN -18.0f #define T_MAX 18.0f #define KP_MIN 0.0f #define KP_MAX 500.0f #define KD_MIN 0.0f #de...
Hayabusa6863/T-motor_controller
Position_PD_controller.cpp.h
<filename>Position_PD_controller.cpp.h // Position PD controller // トルク制御による位置PD制御 #include "T-motor_controller.h" class Position_PD_controller : public T_motor_controller{ private: const float Kp = 1.0; const float Kd = 0.5; // トルクに関する制御式 virtual void control(void) override{ float tau_ref = ...
Hayabusa6863/T-motor_controller
T-motor_controller/T-motor_controller.h
<filename>T-motor_controller/T-motor_controller.h #ifndef T_MOTOR_CONTROLLER_H_ #define T_MOTOR_CONTROLLER_H_ #include <cstdint> #include <utility> #include <map> #include <vector> #include "can_com.h" #include "motor_status.h" #include "basic_op.h" // 動かしたいモータの配列 const uint8_t motor_to_control[] = {CAN_M...
Hayabusa6863/T-motor_controller
basic_op/basic_op.h
#ifndef BASIC_OP_H_ #define BASIC_OP_H_ #include <cmath> //float fmaxf(float x, float y); //float fminf(float x, float y); int float_to_uint(float x, float x_min, float x_max, int bits); float uint_to_float(int x_int, float x_min, float x_max, int bits); #endif
Hayabusa6863/T-motor_controller
mbed-os_baremetal.cpp.h
// mbed-os_baremetal.cpp #include "mbed.h" CAN can(PD_0, PD_1); DigitalOut pin(PG_0); CANMessage msg; Ticker ticker; void send(void); int main(void){ printf("mbed-os-periodic-task-%s %s\r\n", __DATE__, __TIME__); printf("OS_STACK_SIZE:%d\r\n", OS_STACK_SIZE); ticker.attach(callback(send)...
Hayabusa6863/T-motor_controller
can_com/can_com.h
#ifndef CAN_COM_H_ #define CAN_COM_H_ #include "mbed.h" #include "basic_op.h" #include "motor_status.h" #include "motor_config.h" #include <cstdint> // CAN_ID設定 #define CAN_HOST_ID 0 #define CAN_MOTOR_ID 1 #define CAN_DATA_LENGTH 8 class CAN_com{ private: CAN *can; const...
SimonLo/PublicInfo
PublicInfoApp/PublicInfoApp/Dog.h
<gh_stars>0 // // Dog.h // PublicInfoApp // // Created by SimonLo on 3/3/16. // Copyright © 2016年 SimonLo. All rights reserved. // #import <Foundation/Foundation.h> @interface Dog : NSObject @end
SimonLo/PublicInfo
PublicInfoApp/PublicInfoApp/ViewController.h
<reponame>SimonLo/PublicInfo // // ViewController.h // PublicInfoApp // // Created by SimonLo on 3/3/16. // Copyright © 2016年 SimonLo. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
suxx/FFSpecialKit
FFSpecialKit/Classes/Target_special.h
<filename>FFSpecialKit/Classes/Target_special.h // // Target_special.h // AFNetworking // // Created by suxx on 2018/11/21. // #import <Foundation/Foundation.h> @class APIRequest; NS_ASSUME_NONNULL_BEGIN @interface Target_special : NSObject - (UIViewController*)Action_specialDetailViewController:(NSDictionary*)p...
suxx/FFSpecialKit
FFSpecialKit/Classes/FFSpecialKit.h
// // Header.h // Pods // // Created by suxx on 2018/11/19. // #ifndef Header_h #define Header_h //#import <F> #import <Masonry/Masonry.h> #import <FFAPIsKit/FFAPIsKit-umbrella.h> #import <FFToolsKit/FFToolsKit-umbrella.h> #import <FFConfigsKit/FFConfigsKit-umbrella.h> #import <FFCategoryKit/FFCategoryKit-umbrella...
mes51/VolumetricFractalNoise
VolumetricFractalNoise_Strings.h
<reponame>mes51/VolumetricFractalNoise #pragma once typedef enum { StrID_NONE, StrID_Name, StrID_Description, // noise properties StrID_Noise_Param_Group_Name, StrID_Noise_Color_Param_Name, StrID_Noise_Contrast_Param_Name, StrID_Noise_Density_Param_Name, StrID_Noise_Tr...
mes51/VolumetricFractalNoise
Util.h
#ifndef VFN_UTIL_H #define VFN_UTIL_H #include <Windows.h> template <typename T> inline void ClearStructure(T& v) { ::SecureZeroMemory(&v, sizeof(T)); } #endif // VFN_UTIL_H
mes51/VolumetricFractalNoise
HiddenWindow.h
#ifndef HIDDEN_WINDOW_H #define HIDDEN_WINDOW_H #include <windows.h> #include <string> class HiddenWindow { public: HWND hWnd; HiddenWindow(); ~HiddenWindow(); private: std::string className; WNDCLASSEX windowClass; }; #endif // HIDDEN_WINDOW_H
mes51/VolumetricFractalNoise
GLContext.h
#ifndef GL_CONTEXT_H #define GL_CONTEXT_H #include <Windows.h> #include <stdlib.h> #include <stdint.h> #if (_MSC_VER >= 1400) #define THREAD_LOCAL __declspec(thread) #endif #include <memory> #include <string> #include <set> #include <stdexcept> #include <glbinding/gl33core/gl.h> #include "HiddenW...
mes51/VolumetricFractalNoise
GLRendererManager.h
<reponame>mes51/VolumetricFractalNoise #ifndef VFN_GL_RENDERER_MANAGER_H #define VFN_GL_RENDERER_MANAGER_H #include <memory> #include <map> #include <typeinfo> #include <thread> #include "GLContext.h" #include "GLRenderer.h" class GLRendererManager { public: GLRendererManager(std::string fragmentSh...
mes51/VolumetricFractalNoise
ShaderCodes.h
<filename>ShaderCodes.h<gh_stars>1-10 #ifndef VFN_SHADER_CODES_H #define VFN_SHADER_CODES_H #define FRAGMENT_SHADER R"#(#version 400 in vec4 position; in vec2 uv; out vec4 color; uniform dmat4 modelView; uniform vec2 resolution; uniform float fov; // noise properties uniform vec3 noiseColor; uniform fl...
mes51/VolumetricFractalNoise
GLRenderer.h
#ifndef VFN_GL_RENDERER_H #define VFN_GL_RENDERER_H #include <memory> #include <glbinding/gl33core/gl.h> #include "GLContext.h" #include "GLShaderProgram.h" class GLRenderer { public: std::shared_ptr<GLContext> context; std::shared_ptr<GLShaderProgram> shader; GLRenderer(std::shared_ptr...
mes51/VolumetricFractalNoise
glbinding_generated_header/glbinding/glbinding_api.h
<filename>glbinding_generated_header/glbinding/glbinding_api.h #ifndef GLBINDING_API_H #define GLBINDING_API_H #ifdef GLBINDING_STATIC_DEFINE # define GLBINDING_API # define GLBINDING_NO_EXPORT #else # ifndef GLBINDING_API # ifdef glbinding_EXPORTS /* We are building this library */ # de...
mes51/VolumetricFractalNoise
VolumetricFractalNoise_pch.h
#include "AE_Effect.h" #include "AEConfig.h" #include <windows.h> #include <stdlib.h> #include <stdint.h> #if (_MSC_VER >= 1400) #define THREAD_LOCAL __declspec(thread) #endif #include <string> #include <memory> #include <set> #include <atomic>
mes51/VolumetricFractalNoise
ParamScoper.h
<gh_stars>1-10 #ifndef PARAM_SCOPER_H #define PARAM_SCOPER_H #include <AE_Effect.h> #include <AE_EffectCB.h> #include <SPBasic.h> #include <SPSuites.h> #include <glm/glm.hpp> class ParamScoper { public: ParamScoper(const PF_InData* inData, PF_ParamIndex index, A_long time, A_long timeStep, A_u_long ...
mes51/VolumetricFractalNoise
GLShaderProgram.h
#ifndef GL_SHADER_PROGRAM_H #define GL_SHADER_PROGRAM_H #include <Windows.h> #include <string> #include <glbinding/gl33core/gl.h> #include <glm/glm.hpp> class GLShaderProgram { public: gl::GLuint programObject; GLShaderProgram(const char *vertexShaderCode, const char *fragmentShaderCode); ...
mes51/VolumetricFractalNoise
glbinding_generated_header/glbinding/glbinding-version.h
<gh_stars>1-10 #define GLBINDING_PROJECT_NAME "glbinding" #define GLBINDING_PROJECT_DESCRIPTION "A C++ binding for the OpenGL API, generated using the gl.xml specification." #define GLBINDING_AUTHOR_ORGANIZATION "CG Internals GmbH" #define GLBINDING_AUTHOR_DOMAIN "https://github.com/cginternals/glbi...
mes51/VolumetricFractalNoise
VolumetricFractalNoise.h
<gh_stars>1-10 #ifndef VFN_H #define VFN_H typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned short u_int16; typedef unsigned long u_long; typedef short int int16; typedef float fpshort; #define PF_TABLE_BITS 12 #define PF_TABLE_SZ_16 4096 #define PF_DEEP_COLOR_AWARE 1 #in...