repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
avinash-palleti/libigb
igb_internal.h
/****************************************************************************** Copyright (c) 2001-2016, Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions ...
avinash-palleti/libigb
igb.h
/****************************************************************************** Copyright (c) 2001-2016, Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions ...
geekyUtkarsh99/Lost_Space
app/src/main/java/com/example/lostspace/apple.h
// // Created by WINDOWS10 on 25-May-20. // #ifndef LOST_SPACE_APPLE_H #define LOST_SPACE_APPLE_H class apple { private : void a(){ cout<< "gba"; } }; void main (){ cout<< "hello"; apple a; a.a; } #endif //LOST_SPACE_APPLE_H
Kumassy/wireshark-dissector-rs
dissector/plugins/dummy/packet-dummy.h
<gh_stars>10-100 /* packet-dummy.h * Definitions for fake dummy protocol * By <NAME> <<EMAIL>> * Part of github.com/sevagh/wireshark-dissector-rs */
Kumassy/wireshark-dissector-rs
epan-rs/wrapper.h
<gh_stars>10-100 #include <config.h> #include <epan/dissectors/packet-tcp.h> #include <epan/dissectors/packet-udp.h> #include <epan/packet.h> #include <epan/tvbuff-int.h> #include <epan/tvbuff.h> #include <wiretap/wtap.h> #include <glib.h>
Kumassy/wireshark-dissector-rs
dissector/plugins/dummy/packet-dummy.c
<filename>dissector/plugins/dummy/packet-dummy.c #include "config.h" #include <epan/dissectors/packet-tcp.h> #include <epan/packet.h> #include <epan/tvbuff-int.h> #include <epan/tvbuff.h> #include <wiretap/wtap.h> #include <glib.h> #include <stdint.h> #include <stdio.h> #include "./packet-dummy.h" #define DUMMY_POR...
SashaBorisov/CppWinApi
iface/Utils/CountOf.h
<gh_stars>0 #pragma once // // Copyright © 2021, <NAME>, https://github.com/SashaBorisov/CppWinApi // #include <compare> #include <type_traits> #include <iterator> namespace Utils { template<typename T> struct CountOf; template<typename T> struct DiffOf { using Type = T; constexpr D...
SashaBorisov/CppWinApi
iface/WinApi/IO/File.h
#pragma once // // Copyright © 2021, <NAME>, https://github.com/SashaBorisov/CppWinApi // #include <type_traits> #include <filesystem> #include <optional> #include <WinApi/Handle.h> #include <Utils/Mask.h> #include <Utils/CountOf.h> namespace WinApi::IO { using Utils::Flag; using Utils::Mask; us...
SashaBorisov/CppWinApi
iface/WinApi/Heap.h
<reponame>SashaBorisov/CppWinApi<gh_stars>0 #pragma once // // Copyright © 2021, <NAME>, https://github.com/SashaBorisov/CppWinApi // #include <WinApi/Common.h> #include <WinApi/Handle.h> #include <heapapi.h> #include <Utils/CountOf.h> namespace WinApi { using Utils::DiffOf; using Utils::CountOf;...
SashaBorisov/CppWinApi
iface/WinApi/Handle.h
#pragma once // // Copyright © 2021, <NAME>, https://github.com/SashaBorisov/CppWinApi // #include <WinApi/Common.h> #include <winnt.h> #include <memory> #include <Utils/Flag.h> namespace WinApi { template<typename C> using Handle = std::unique_ptr<void, C>; template<typename C> Handle<C> safeH...
SashaBorisov/CppWinApi
iface/Utils/Flag.h
<reponame>SashaBorisov/CppWinApi<filename>iface/Utils/Flag.h<gh_stars>0 #pragma once // // Copyright © 2021, <NAME>, https://github.com/SashaBorisov/CppWinApi // namespace Utils { #define UNIQUE_TAG decltype([](){}) template<auto V, typename Tag> struct Flag { using Type = decltype(V); cons...
SashaBorisov/CppWinApi
iface/WinApi/Sync/Event.h
#pragma once // // Copyright © 2021, <NAME>, https://github.com/SashaBorisov/CppWinApi // #include <WinApi/Common.h> #include <WinApi/Handle.h> #include <Utils/Flag.h> #include <synchapi.h> namespace WinApi::Sync { enum class EventReset: BOOL { Manual = TRUE , Auto = FALSE }; conste...
SashaBorisov/CppWinApi
iface/WinApi/Common.h
<gh_stars>0 #pragma once // // Copyright © 2021, <NAME>, https://github.com/SashaBorisov/CppWinApi // #include <windows.h> #include <tchar.h> #include <string> #include <string_view> #include <chrono> #include <format> #include <system_error> namespace WinApi { using String = std::basic_string<...
SashaBorisov/CppWinApi
iface/Utils/Mask.h
<gh_stars>0 #pragma once // // Copyright © 2021, <NAME>, https://github.com/SashaBorisov/CppWinApi // #include <type_traits> #include <Utils/Flag.h> namespace Utils { template<typename E> class Mask { public: using Enum = E; using Type = typename Enum::Type; template<auto V> c...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Views/TDSeparatorTableView.h
<gh_stars>0 // // TDSeparatorTableView.h // TimelyDemo // // Created by <NAME> on 16/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN /** UITableView subclass bringing dotted separators for empty table space. */ @interface TDSeparatorTableView : UITab...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Views/Time Entry/TimeEntryTableViewCell.h
// // TimeEntryTableViewCell.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // @import UIKit; @class TimeEntryView; NS_ASSUME_NONNULL_BEGIN @interface TimeEntryTableViewCell : UITableViewCell /** Displays time entry view. @param timeEntryView View con...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Views/Time Entry/TimeEntryEditableView.h
<gh_stars>0 // // TimeEntryEditableView.h // TimelyDemo // // Created by <NAME> on 13/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class TimeEntryViewData; NS_ASSUME_NONNULL_BEGIN @interface TimeEntryEditableView : UIView @property (assign, readonly, nonatomic) TimeEntry...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Models/Time Entry/TimeEntryViewData.h
// // TimeEntryViewData.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // @import UIKit; @class TimeEntry; NS_ASSUME_NONNULL_BEGIN // In real project there may be a protocol to support modularity of data visual representation logic. @interface TimeEntryVie...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Models/DayMenuViewData.h
<filename>TimelyDemo/TimelyDemo/Models/DayMenuViewData.h<gh_stars>0 // // DayMenuViewData.h // TimelyDemo // // Created by <NAME> on 12/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @class TimeEntry; NS_ASSUME_NONNULL_BEGIN @interface DayMenuViewData : NSObject @...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Helpers/XibView.h
// // XibView.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN /** Superclass for views with xib file. Their views must be connected to this class's view property. */ @interface XibView : UIView @end NS_...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Controllers/HoursViewController.h
<filename>TimelyDemo/TimelyDemo/Controllers/HoursViewController.h // // HoursViewController.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface HoursViewController : UIViewController @end NS_ASSUME_...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Services/PhotoCaptureService.h
<reponame>Aft3rmathpwnz/TimelyDemo // // PhotoCaptureService.h // TimelyDemo // // Created by Aft3rmath on 18/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // @import Foundation; @import AVFoundation; NS_ASSUME_NONNULL_BEGIN @protocol PhotoCaptureServiceDelegate <NSObject> /** Called when camera ca...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Views/DayMenuView.h
<filename>TimelyDemo/TimelyDemo/Views/DayMenuView.h // // DayMenuView.h // TimelyDemo // // Created by <NAME> on 12/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // @import UIKit; #import "XibView.h" @class DayMenuViewData; NS_ASSUME_NONNULL_BEGIN @protocol DayMenuViewDelegate <NSObject> /** Called...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Services/Network (Simulation)/TimeEntriesService.h
// // TimeEntriesService.h // TimelyDemo // // Created by <NAME> on 15/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @class TimeEntry; NS_ASSUME_NONNULL_BEGIN /** Mock for network service, that would perform CRUD operations with TimeEntry entity using APIClient i...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Helpers/UIColor+Utils.h
// // UIColor+Hex.h // // Created by Aft3rmath on 09.05.17. // Copyright © 2017 aft3rmath. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (Hex) + (UIColor *)colorwithHexString:(NSString *)hexStr; + (UIColor *)colorwithHexString:(NSString *)hexStr alpha:(CGFloat)alpha; @end @interface UIColor...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Views/Time Entry/TimeEntryViewLayoutProtocol.h
// // TimeEntryViewLayoutProtocol.h // TimelyDemo // // Created by Aft3rmath on 18/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol TimeEntryViewLayoutProtocol <NSObject> /** Sets project and billed hours labels up for default stat...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Controllers/TimeEntriesViewController.h
<reponame>Aft3rmathpwnz/TimelyDemo<filename>TimelyDemo/TimelyDemo/Controllers/TimeEntriesViewController.h // // TimeEntriesViewController.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class TimeEntry; NS_ASSUME_NONNULL_BEGIN @i...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Controllers/DayMenuViewController.h
// // DayMenuViewController.h // TimelyDemo // // Created by <NAME> on 12/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class TimeEntry; NS_ASSUME_NONNULL_BEGIN @interface DayMenuViewController : UIViewController /** Calculates and displays day's total hours & earnings. ...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Services/TimeEntryRecognitionService.h
<reponame>Aft3rmathpwnz/TimelyDemo // // TimeEntryRecognitionService.h // TimelyDemo // // Created by <NAME> on 18/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // @import UIKit; @class TimeEntry; NS_ASSUME_NONNULL_BEGIN typedef void (^TimeEntryRecognitionCallback)(TimeEntry *_Nullable timeEntry, NSE...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Controllers/AddTimeEntryViewController.h
<filename>TimelyDemo/TimelyDemo/Controllers/AddTimeEntryViewController.h // // AddTimeEntryViewController.h // TimelyDemo // // Created by <NAME> on 13/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class TimeEntry; NS_ASSUME_NONNULL_BEGIN @interface AddTimeEntryViewControl...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/AppDelegate.h
// // AppDelegate.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Helpers/UIImage+Utils.h
// // UIImage+Utils.h // TimelyDemo // // Created by <NAME> on 13/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIImage (Utils) /** Fixes image orientation for capturing in portraint orientation. Temporary fix for demo. @return Transfo...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/External/CBZSplashView/CBZSplashView.h
<gh_stars>100-1000 // // CBZSplashView.h // MicroMessage // // Created by <NAME> on 22/07/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreGraphics/CoreGraphics.h> /** * The abstract class that provides the common interface between all splash view implementations....
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Views/Time Entry/TimeEntryView.h
<reponame>Aft3rmathpwnz/TimelyDemo // // TimeEntryView.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class TimeEntryViewData; NS_ASSUME_NONNULL_BEGIN @interface TimeEntryView: UIView - (instancetype)initWithCoder:(NSCoder *)aD...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Helpers/TDHelper.h
<filename>TimelyDemo/TimelyDemo/Helpers/TDHelper.h // // TDConstants.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // @import UIKit; extern NSString *const TDTimeEntryAddedNotificationName; extern NSString *const TDTimeEntryKey; @interface UIColor (Timely...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/Models/Time Entry/TimeEntry.h
<reponame>Aft3rmathpwnz/TimelyDemo // // TimeEntry.h // TimelyDemo // // Created by <NAME> on 08/01/2019. // Copyright © 2019 <NAME>. All rights reserved. // @import UIKit; NS_ASSUME_NONNULL_BEGIN /** PONSO for time entry entity (must be implementing NSCoding & NSCopying to be serializable) */ @interface Time...
Aft3rmathpwnz/TimelyDemo
TimelyDemo/TimelyDemo/External/CBZSplashView/CBZVectorSplashView.h
<gh_stars>100-1000 // // CBZVectorSplashView.h // Telly // // Created by <NAME> on 8/7/14. // Copyright (c) 2014 Telly, Inc. All rights reserved. // #import "CBZSplashView.h" /** * VectorSplash uses a UIBezierPath to carve a mask in the middle that expands while revealing the content behind it. */ @interface C...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/DebugScene.h
#pragma once #include "Module.h" #include "Globals.h" #include "imgui.h" #include "glew/glew.h" #include "ComponentUIImage.h" #define MAX_SNAKE 2 #define LIB_NUM 11 struct hardware_info { const char* gpu_vendor = 0; const char* gpu_device = 0; int vram_mb_available = 0; int vram_mb_dedicated = 0; int vram_mb_c...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/QuadtreeNode.h
<filename>Weep Engine/QuadtreeNode.h #ifndef __QUADTREENODE_H__ #define __QUADTREENODE_H__ #include "MathGeoLib/include/Geometry/AABB.h" #include <vector> #include "Globals.h" class GameObject; class QuadtreeNode { public: enum class CollisionType { INTERSERCT_BORDER, FULLY_CONTAINED, NONE_COLLISION }; Q...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/App.h
<filename>Weep Engine/App.h #pragma once #include "Globals.h" #include "Profiler.h" #include "Module.h" #include "MathGeoLib/include/MathBuildConfig.h" #include "MathGeoLib/include/MathGeoLib.h" #include "MathGeoLib/include/Algorithm/Random/LCG.h" class Profiler; class ModuleWindow; class ModuleInput; class ModuleRe...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentTransform.h
#ifndef __COMPONENTTRANSFORM_H__ #define __COMPONENTTRANSFORM_H__ #include "Component.h" #include "MathGeoLib/include/MathGeoLib.h" class ComponentTransform : public Component { public: ComponentTransform(); void Save(Json::Value&) const override; void Load(const Json::Value&) override; void InspectorDraw(); ...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleWindow.h
<filename>Weep Engine/ModuleWindow.h #ifndef __ModuleWindow_H__ #define __ModuleWindow_H__ #include "Module.h" #include "SDL/include/SDL.h" #include "imgui.h" #include "glmath.h" class Application; class ModuleWindow : public Module { public: ModuleWindow(bool start_enabled = true); // Destructor virtual ~Module...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentMesh.h
<gh_stars>1-10 #ifndef __COMPONENTMESH_H__ #define __COMPONENTMESH_H__ #include "Globals.h" #include "Component.h" #include "Color.h" #include "MathGeoLib/include/Math/float3.h" #include "MathGeoLib/include\MathGeoLib.h" class ResourceMesh; class ComponentTexture; class ComponentMesh : public Component { public: ...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleImporter.h
#ifndef __MODULEIMPORTER_H__ #define __MODULEIMPORTER_H__ #include "Module.h" #include "Globals.h" struct aiMesh; class ComponentMesh; class ResourceMesh; class ComponentTexture; struct aiScene; class GameObject; template<class my_node> class Node { public: my_node* current_node; Node<my_node>* parent = nullptr; G...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleTexture.h
#ifndef __MODULETEXTURE_H__ #define __MODULETEXTURE_H__ #include "Module.h" #include "Globals.h" #define checkImageWidth 64 #define checkImageHeight 64 class ComponentTexture; class ModuleTexture : public Module { public: struct TextureInfo { uint resource_id = 0; }; ModuleTexture(bool start_enabled = true); ...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/Timer.h
<reponame>WEEP-WORKS/WEEP-ENGINE<filename>Weep Engine/Timer.h<gh_stars>1-10 #ifndef __j1TIMER_H__ #define __j1TIMER_H__ class Timer { public: Timer(); ~Timer(); void Start(); int Read() const; float ReadSec() const; void SubstractTimeFromStart(float sec); void Stop(); void PauseOn(); void PauseOff(); bool ...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentTexture.h
#ifndef __COMPONENTTEXTURE_H__ #define __COMPONENTTEXTURE_H__ #include "Component.h" #include <string> class ResourceTexture; class ComponentTexture : public Component { public: ComponentTexture() {}; void ActivateThisTexture(); bool IsTextureActive() const; void DesactivateTexture(); void InspectorDraw(); voi...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentUIObjectBase.h
<reponame>WEEP-WORKS/WEEP-ENGINE #ifndef __COMPONENTUIOBJECTBASE_H__ #define __COMPONENTUIOBJECTBASE_H__ #include "Component.h" #include <list> #include "MathGeoLib/include/Math/Rect.h" #include "ResourceMesh.h" enum class UIType { NONE = -1, IMAGE, BUTTON, CHECKBOX }; class ComponentUIObjectBase : public Compon...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentUIImage.h
#ifndef __COMPONENTUIIMAGE_H__ #define __COMPONENTUIIMAGE_H__ #include "ComponentUIObjectBase.h" #include "GameObject.h" class ComponentUIImage : public ComponentUIObjectBase { public: ComponentUIImage(UIType _type, float2 local_pos, Rect rect_spritesheet_original, bool draggable, ComponentUIObjectBase* parent) : Co...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/Module.h
<filename>Weep Engine/Module.h #pragma once class Application; enum class UIButtonType; enum class UICheckBoxType; using namespace std; #include <string> #include <list> #include <queue> #include <iostream> #include <functional> #include "SDL\include\SDL.h" #include "jsoncpp/json/json.h" class Module { public: ...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentRender2D.h
<filename>Weep Engine/ComponentRender2D.h<gh_stars>1-10 #ifndef __COMPONENTRENDER2D_H__ #define __COMPONENTRENDER2D_H__ #include "Globals.h" #include "Component.h" #include "Color.h" #include "ResourceMesh.h" class ComponentTexture; class ComponentRender2D : public Component { public: ComponentRender2D(); void Po...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentUICheckBox.h
#ifndef __COMPONENTUICHECKBOX_H__ #define __COMPONENTUICHECKBOX_H__ #include "ComponentUIObjectBase.h" class Module; enum class UICheckBoxType { TEST, VSYNC }; class ComponentUICheckBox : public ComponentUIObjectBase { enum class UICheckBoxState { NONE, CLICKED, }; public: ComponentUICheckBox(UIType _type...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/JsonHelper.h
#ifndef __JSONHELPER_H__ #define __JSONHELPER_H__ #include "jsoncpp/json/json.h" #include "MathGeoLib/include/MathGeoLib.h" class JsonHelper { public: JsonHelper() {}; void Fill(Json::Value&, const float3&) const; void Fill(float3&, const Json::Value&) const; }; #endif // !__JSONHELPER_H__
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleInput.h
#pragma once #include "Module.h" #include "Globals.h" #include "imgui.h" #define MAX_MOUSE_BUTTONS 5 enum KEY_STATE { KEY_IDLE = 0, KEY_DOWN, KEY_REPEAT, KEY_UP }; enum EventWindow { WE_QUIT = 0, WE_HIDE = 1, WE_SHOW = 2, WE_COUNT }; class ModuleInput : public Module { public: ModuleInput(bool start_enab...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/GameObject.h
<filename>Weep Engine/GameObject.h<gh_stars>1-10 #ifndef __GAMEOBJECT_H__ #define __GAMEOBJECT_H__ #include <vector> #include <functional> #include "Globals.h" #include "ComponentTransform.h" #include "MathGeoLib/include\MathGeoLib.h" #include "ComponentUIObjectBase.h" #include "jsoncpp/json/json.h" class Component;...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/Profiler.h
<gh_stars>1-10 #ifndef __PROFILER_H__ #define __PROFILER_H__ #include "SDL\include\SDL.h" #include <vector> #include <iostream> #define MAX_FRAMES_GRAPH 25 #define MAX_MEMORY_GRAPH 25 struct Profile { const char* name; float frame_start = 0.0f; float last_frame_ms = 0.0f; float total_frames_ms = 0.0f; }; class ...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ResourceManagment.h
#ifndef __RESOURCEMANAGMENT_H__ #define __RESOURCEMANAGMENT_H__ #include "Module.h" //typedef unsigned long long UID; #include "Globals.h" #include "Resource.h" #include "ResourceMesh.h" //class Resource { public: enum class Type; }; class ResourceManagment : public Module { public: ResourceManagment(); //UID Fin...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleFonts.h
<reponame>WEEP-WORKS/WEEP-ENGINE #ifndef _MODULE_FONTS_ #define _MODULE_FONTS_ #include <vector> #include <functional> #include "stb_truetype.h" #include "Globals.h" class UIFont { public: UIFont(); UIFont(const char* filepath, const char* name, unsigned char* bitmap, uint butmap_size, int width, int height, int li...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleQuadtree.h
<gh_stars>1-10 #ifndef __MODULEQUADTREE_H__ #define __MODULEQUADTREE_H__ #include "Module.h" #include "Globals.h" #include"QuadtreeNode.h" #include <functional> #include <vector> #include "MathGeoLib/include/Geometry/Frustum.h" class GameObject; class ModuleQuadtree : public Module { public: ModuleQuadtree(); b...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleCamera3D.h
#pragma once #include "GameObject.h" #include "Module.h" #include "Globals.h" #include "glmath.h" #include "MathGeoLib/include/MathGeoLib.h" class Camera3D { public: Camera3D(); Frustum GetFrustum(); void SetPosition(const float3& pos); const float3 GetPosition(); void SetZDir(const float3 & front); void SetYD...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ResourceTexture.h
#ifndef __RESOURCETEXTURE_H__ #define __RESOURCETEXTURE_H__ #include "Resource.h" class ResourceTexture : public Resource { public: ResourceTexture(UID uid, Resource::Type type) : Resource(uid, type) {}; //virtual ~ResourceTexture(); //bool LoadInMemory() override; //void Save(Config& config) const override; //...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/Component.h
#ifndef __COMPONENT_H__ #define __COMPONENT_H__ #include "Globals.h" #include "imgui.h" #include "MathGeoLib/include/MathGeoLib.h" #include "jsoncpp/json/json.h" class GameObject; enum class ComponentType { NONE = -1, TRANSFORM, MESH, TEXTURE, CAMERA, RENDER2D }; class Component { public: ComponentType type =...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/Resource.h
#ifndef __RESOURCE_H__ #define __RESOURCE_H__ typedef unsigned long long UID; class Resource { public: enum class Type { TEXTURE, MESH, SCENE, UNKNOWN }; Resource(UID uid, Resource::Type type) : uid(uid), type(type) {}; //virtual ~Resource(); const Resource::Type GetType() const; const UID GetResourc...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentUIButton.h
<reponame>WEEP-WORKS/WEEP-ENGINE<gh_stars>1-10 #ifndef __COMPONENTUIBUTTON_H__ #define __COMPONENTUIBUTTON_H__ #include "ComponentUIObjectBase.h" class Module; enum class UIButtonType { TEST, PLAY }; class ComponentUIButton : public ComponentUIObjectBase { enum class UIButtonState { NONE, HOVER, CLICKED, ...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/PerfTimer.h
#ifndef __PERFTIMER_H__ #define __PERFTIMER_H__ class PerfTimer { public: // Constructor PerfTimer(); void Start(); double ReadMs() const; int ReadTicks() const; private: int started_at; static int frequency; }; #endif //__PERFTIMER_H__
WEEP-WORKS/WEEP-ENGINE
Weep Engine/Functions.h
<reponame>WEEP-WORKS/WEEP-ENGINE #ifndef __FUNCTIONS_H__ #define __FUNCTIONS_H__ #include <list> #include <string> // ----------------------------------------- // ----------------------------------------- // USEFULL FUNCTIONS // // ----------------------------------------- // ---------------------------------------...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ComponentCamera.h
#ifndef __COMPONENT_CAMERA_H__ #define __COMPONENT_CAMERA_H__ #include "Component.h" #include "MathGeoLib/include/MathGeoLib.h" class GameObject; class Camera3D; class ComponentCamera : public Component { public: ComponentCamera(); void Update(); void CleanUp() override; Camera3D * GetCamera() const; void Ins...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleGameObjectManager.h
#ifndef __MODULEGAMEOBJECTMANAGER_H__ #define __MODULEGAMEOBJECTMANAGER_H__ #include "Module.h" #include "Globals.h" #include<typeinfo> #include "ImGuizmo.h" #include "MathGeoLib/include/MathGeoLib.h" class GameObject; class ResourceMesh; typedef struct par_shapes_mesh_s par_shapes_mesh; class GameObjectManager :...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/SceneManager.h
<filename>Weep Engine/SceneManager.h #ifndef __SCENE_MANAGER_H__ #define __SCENE_MANAGER_H__ #include "Module.h" class GameObject; enum SCENE_STATE { EDIT, PLAY }; class SceneManager : public Module { public: SceneManager(bool start_enabled = true); virtual ~SceneManager(); bool Start(); bool CleanUp(); vo...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ResourceMesh.h
<filename>Weep Engine/ResourceMesh.h #ifndef __RESOURCEMESH_H__ #define __RESOURCEMESH_H__ #include "Resource.h" #include "Globals.h" #include "MathGeoLib/include/Geometry/AABB.h" #include "glew/glew.h" template <typename BufferType> struct BuffersData { ~BuffersData() { RELEASE_ARRAY(buffer); } bool has_dat...
WEEP-WORKS/WEEP-ENGINE
Weep Engine/ModuleRenderer3D.h
<reponame>WEEP-WORKS/WEEP-ENGINE #pragma once #include "Module.h" #include "Globals.h" #include "glmath.h" #include "Light.h" #include "imgui.h" #define MAX_LIGHTS 8 enum polygon_mode { gl_fill, gl_line, gl_point }; class ModuleRenderer3D : public Module { public: ModuleRenderer3D(bool start_enabled = true); ~M...
EdLeafe/vRunFox
classes/vrunfox.h
<reponame>EdLeafe/vRunFox<filename>classes/vrunfox.h #DEFINE TOP_SECRET "almost()"
azuwis/debian_bspwm
messages.c
/* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and ...
azuwis/debian_bspwm
query.h
<reponame>azuwis/debian_bspwm /* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this...
azuwis/debian_bspwm
tree.c
/* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and ...
azuwis/debian_bspwm
types.h
<reponame>azuwis/debian_bspwm /* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this...
azuwis/debian_bspwm
window.c
/* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and ...
azuwis/debian_bspwm
helpers.c
/* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and ...
azuwis/debian_bspwm
messages.h
<gh_stars>1-10 /* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of ...
azuwis/debian_bspwm
stack.c
/* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and ...
azuwis/debian_bspwm
helpers.h
<gh_stars>1-10 /* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of ...
azuwis/debian_bspwm
settings.h
/* Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and ...
vnm-interactive/Grove
src/Grove.h
<gh_stars>1-10 /* Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
vnm-interactive/Grove
src/GestureManager.h
/* Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
vnm-interactive/Grove
src/Terrain.h
<gh_stars>1-10 /* Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
vnm-interactive/Grove
src/UserInterface.h
<filename>src/UserInterface.h /* Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
vnm-interactive/Grove
src/Triangulation/Triangulation.h
/* Copyright (c) 2015 <NAME> This code uses a class extracted and adapted from the OpenCV library for use with the Cinder C++ library, http://libcinder.org and all the relevant portion of code is tied to OpenCV license that can be found in Triangulation.cpp file Permission is hereby granted, free of charge, ...
vnm-interactive/Grove
src/PoissonDiskDistribution/PoissonDiskDistribution.h
<gh_stars>1-10 /* Copyright (c) 2015 <NAME> Algorithm from Fast Poisson Disk Sampling in Arbitrary Dimensions by <NAME> http://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf as explained in this article: http://devmag.org.za/2009/05/03/poisson-disk-sampling/ Permission is hereby granted, free ...
songwut/FlashCard
flash/ExternalLibs/CHTStickerView/CHTStickerView.h
<filename>flash/ExternalLibs/CHTStickerView/CHTStickerView.h // // CHTStickerView.h // Sample // // Created by <NAME> on 2013/10/31. // Copyright (c) 2013年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM (NSInteger, CHTStickerViewHandler) { CHTStickerViewHandlerClose, CHTStickerViewHan...
songwut/FlashCard
flash/Header.h
<gh_stars>0 // // Header.h // flash // // Created by <NAME> on 18/9/2564 BE. // #ifndef Header_h #define Header_h #import "CHTStickerView.h" #import "TTGTagCollectionView.h" #endif /* Header_h */
darknessnerd/piapf
include/base64.h
#ifndef BASE64_H #define BASE64_H #include <string> #if __cplusplus >= 201703L #include <string_view> #endif // __cplusplus >= 201703L namespace base64 { std::string base64_encode (std::string const& s, bool url = false); std::string base64_encode_pem (std::string const& s); std::string base64_encode_mime(std::...
darknessnerd/piapf
include/pia_client.h
#ifndef PIA_CLIENT_H #define PIA_CLIENT_H #include <string> #include <cpprest/http_client.h> #include <functional> #include <cpprest/json.h> #include <pplx/pplxtasks.h> class PiaClient { public: PiaClient(); virtual ~PiaClient(); std::string get_public_ip(); bool auth(const std::str...
darknessnerd/piapf
include/uuid.h
<reponame>darknessnerd/piapf #ifndef UUID_H #define UUID_H #include <string> namespace UUID { std::string generate_uuid(); } #endif // UUID_H
darknessnerd/piapf
include/configuration.h
<reponame>darknessnerd/piapf #ifndef CONFIGURATION_H #define CONFIGURATION_H #include <string> #include <boost/program_options.hpp> class Configuration { public: Configuration(); virtual ~Configuration(); int parse(int argc, char *argv[]); std::string get_default_config_path() const; std::string g...
darknessnerd/piapf
include/subprocess.h
#ifndef SUBPROCESS_H #define SUBPROCESS_H #include <string> #include <future> #include <vector> // For fork and wait #include <sys/types.h> #include <sys/wait.h> namespace shell{ /** A simple class to start and read from a subprocess */ class subprocess{ enum{OUT_READ, OUT_WRITE, IN_READ, IN_WRITE...
darknessnerd/piapf
include/net_tools.h
#ifndef NET_TOOLS_H #define NET_TOOLS_H #include <string> #include <vector> namespace net_tools { std::string get_ip_address(const std::string &iface); std::vector<std::string> dns_lookup(const std::string &host_name, int ipv=4); } #endif // NET_TOOLS_H
darknessnerd/piapf
include/shell.h
#ifndef SHELL_H #define SHELL_H #include <string> #include <stdexcept> namespace shell { class cmd { int exit_code_; std::string command_; std::string output_; FILE* pipe_{nullptr}; public: cmd(std::string command, bool throws = true); ~cmd(); bool ok(); std::string str(); frie...
kiwiroy/libtickit
t/20mockterm.c
<gh_stars>10-100 #include "tickit.h" #include "tickit-mockterm.h" #include "taplib.h" #include "taplib-mockterm.h" #include <string.h> #define streq(a,b) (!strcmp(a,b)) #define RECT(t,l,li,co) (TickitRect){ .top = t, .left = l, .lines = li, .cols = co } static TickitTerm *tt; static void is_display_text(char *nam...
kiwiroy/libtickit
t/34renderbuffer-save.c
#include "tickit.h" #include "taplib.h" #include "taplib-mockterm.h" int main(int argc, char *argv[]) { TickitTerm *tt = make_term(25, 80); TickitRenderBuffer *rb; rb = tickit_renderbuffer_new(10, 20); // Position { int line, col; tickit_renderbuffer_goto(rb, 2, 2); { tickit_renderbuffe...
kiwiroy/libtickit
include/tickit-termdrv.h
<reponame>kiwiroy/libtickit #ifdef __cplusplus extern "C" { #endif #ifndef __TICKIT_TERMDRV_H__ #define __TICKIT_TERMDRV_H__ /* * The contents of this file should be considered entirely experimental, and * subject to any change at any time. We make no API or ABI stability * guarantees at this time. */ #include "...