repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
shirobusa1997/UE-PhotonSandbox | Source/photon-import.h | <reponame>shirobusa1997/UE-PhotonSandbox
#pragma once
#ifdef __clang__
#pragma clang diagnostic ignored "-Woverloaded-virtual"
#endif
#if _EG_WINDOWS_PLATFORM
#include "AllowWindowsPlatformTypes.h"
#pragma warning (disable: 4263)
#pragma warning (disable: 4264)
#endif
#include "LoadBalancing-cpp/inc/Client.h"
#if _EG... |
shirobusa1997/UE-PhotonSandbox | Source/Photon/Common-cpp/inc/Common.h | <filename>Source/Photon/Common-cpp/inc/Common.h<gh_stars>0
/* Exit Games Common - C++ Client Lib
* Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved.
* http://www.photonengine.com
* mailto:<EMAIL>
*/
#pragma once
#include "Common-cpp/inc/porting.h"
#include "Common-cpp/inc/platformLayer.h"
#include ... |
shirobusa1997/UE-PhotonSandbox | Source/Photon/Photon-cpp/inc/TrafficStatsGameLevel.h | <gh_stars>0
/* Exit Games Photon - C++ Client Lib
* Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved.
* http://www.photonengine.com
* mailto:<EMAIL>
*/
#pragma once
#include "Common-cpp/inc/Common.h"
namespace ExitGames
{
namespace Photon
{
class TrafficStatsGameLevel : public Common::Base
{... |
shirobusa1997/UE-PhotonSandbox | Source/Photon/LoadBalancing-cpp/inc/Internal/Enums/Properties/Player.h | /* Exit Games Photon LoadBalancing - C++ Client Lib
* Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved.
* http://www.photonengine.com
* mailto:<EMAIL>
*/
#pragma once
#include "Photon-cpp/inc/PhotonPeer.h"
namespace ExitGames
{
namespace LoadBalancing
{
namespace Internal
{
// Photon prop... |
shirobusa1997/UE-PhotonSandbox | Source/PhotonSandbox/PhotonAPI2UE4/PA2U_BaseView.h | #pragma once
#include "Common-cpp/inc/Common.h"
class PA2U_BaseView
{
public:
virtual void updateState(int state, const ExitGames::Common::JString& stateStr, const ExitGames::JString& joinedRoomName);
virtual void initPlayers(void);
virtual void addPlayer(int playerNumber, const ExitGames:... |
shirobusa1997/UE-PhotonSandbox | Source/Photon/LoadBalancing-cpp/inc/Peer.h | /* Exit Games Photon LoadBalancing - C++ Client Lib
* Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved.
* http://www.photonengine.com
* mailto:<EMAIL>
*/
#pragma once
#include "Photon-cpp/inc/PhotonPeer.h"
#include "LoadBalancing-cpp/inc/Enums/MatchmakingMode.h"
#include "LoadBalancing-cpp/inc/Lobb... |
gme/three20 | samples/TTCatalog/Classes/StyledTextTableTestController.h | <reponame>gme/three20
#import <Three20/Three20.h>
@interface StyledTextTableTestController : TTTableViewController {
}
@end
|
gme/three20 | src/Three20/TTAppearance.h | <reponame>gme/three20<filename>src/Three20/TTAppearance.h
#import "Three20/TTGlobal.h"
typedef enum {
TTStyleNone,
TTStyleFill,
TTStyleFillInverted,
TTStyleReflection,
TTStyleInnerShadow,
TTStyleRoundInnerShadow,
TTStyleStrokeTop,
TTStyleStrokeRight,
TTStyleStrokeBottom,
TTStyleStrokeLeft
} TTStyle... |
gme/three20 | src/Three20/TTThumbView.h | <gh_stars>1-10
#import "Three20/TTLinkView.h"
@class TTImageView;
@class TTStyledView;
@interface TTThumbView : TTLinkView {
TTImageView* imageView;
TTStyledView* borderView;
}
@property(nonatomic,copy) NSString* thumbURL;
- (void)suspendLoading:(BOOL)suspended;
@end
|
gme/three20 | src/Three20/UIColorAdditions.h | <reponame>gme/three20
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface UIColor (TTCategory)
- (UIColor*)transformHue:(CGFloat)hd saturation:(CGFloat)sd value:(CGFloat)vd;
/**
* Uses transformHue to create a lighter version of the color.
*/
- (UIColor*)highlight;
/**
* Uses transformHue to cre... |
therockstorm/openapi-generator | samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObjectBuilder.h | <filename>samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObjectBuilder.h
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "SWGUserManagedObject.h"
#import "SWGUser.h"
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the ap... |
therockstorm/openapi-generator | samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGInlineObjectManagedObjectBuilder.h | #import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "SWGInlineObjectManagedObject.h"
#import "SWGInlineObject.h"
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
*
* The version of the Open... |
therockstorm/openapi-generator | samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGInlineObject1ManagedObjectBuilder.h | #import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "SWGInlineObject1ManagedObject.h"
#import "SWGInlineObject1.h"
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
*
* The version of the Op... |
therockstorm/openapi-generator | samples/client/petstore/objc/default/SwaggerClient/Model/SWGInlineObject.h | <gh_stars>1000+
#import <Foundation/Foundation.h>
#import "SWGObject.h"
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated b... |
therockstorm/openapi-generator | samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGInlineObjectManagedObject.h | #import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAP... |
therockstorm/openapi-generator | samples/server/petstore/cpp-qt5-qhttpengine-server/server/src/models/OAIOrder.h | <reponame>therockstorm/openapi-generator<gh_stars>1000+
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI Gener... |
therockstorm/openapi-generator | samples/client/petstore/c/unit-tests/manual-UserAPI.c | <filename>samples/client/petstore/c/unit-tests/manual-UserAPI.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "../api/UserAPI.h"
#define USER_ID 1234
#define USER_NAME "example123"
#define FIRST_NAME "Example1"
#define LAST_NAME "Example2Last"
... |
therockstorm/openapi-generator | samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObject.h | <reponame>therockstorm/openapi-generator
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOT... |
therockstorm/openapi-generator | samples/client/petstore/cpp-ue4/Public/OpenAPIBaseModel.h | <reponame>therockstorm/openapi-generator
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* https://github.com... |
therockstorm/openapi-generator | samples/client/petstore/cpp-ue4/Public/OpenAPIUserApiOperations.h | /**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* https://github.com/OpenAPITools/openapi-generator
* Do not... |
therockstorm/openapi-generator | samples/client/petstore/cpp-ue4/Public/OpenAPIUserApi.h | <filename>samples/client/petstore/cpp-ue4/Public/OpenAPIUserApi.h
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Genera... |
remicollet/php-ext-brotli | brotli.c | <reponame>remicollet/php-ext-brotli
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <php.h>
#include <SAPI.h>
#include <php_ini.h>
#include <ext/standard/info.h>
#if ZEND_MODULE_API_NO >= 20141001
#include <ext/standard/php_smart_string.h>
#else
#include <ext/standard/php_smart_str.h>
#endif
#include "php... |
mfnovriansyah/MiniProjectPTK | EnkripDekrip1.0.c | <reponame>mfnovriansyah/MiniProjectPTK
#include <stdio.h>
#include <stdlib.h>
int hitung = 0; // inisiasi dengan angka 0 untuk menghitung maksimal percobaan login masuk yaitu 3
char pilihan; // untuk memilih pilihan
void menu(); //prototype
void judulprogram();//prototype
int i; // membantu looping ekripsi dekrip... |
handar/ThreadRacer | pthread_race.c | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
/**
* THESE DEFINE VALUES CANNOT BE CHANGED.
* DOING SO WILL CAUSE POINTS TO BE DEDUCTED
* FROM YOUR GRADE (15 points)
*/
/** BEGIN VALUES THAT CANNOT BE CHANGED */
#define MAX_THREADS 16
#define... |
brmmm3/engraver | plot.c | /* For Emacs: -*- mode:c; eval: (folding-mode 1) -*- */
/* {{{ include, define, vars */
#define USE_MULTI_SHABAL
#define _GNU_SOURCE
#define _LARGEFILE64_SOURCE
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <inttypes.h>
#include <sys/typ... |
brmmm3/engraver | helper.c | #include <string.h>
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#elif MACOS
#include <sys/param.h>
#include <sys/sysctl.h>
#else
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/statvfs.h>
#endif
// Following 2 routines taken from: http://stackoverflow.com... |
g1050/recipes | thread/test/vim.h | #ifndef vim_H
#define vim_H
class Vim{
public:
inline int func(int a);
private:
int a;
};
#endif
|
g1050/recipes | thread/Thread.h | // excerpts from http://code.google.com/p/muduo/
//
// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
//
// Author: <NAME> (giantchen at gmail dot com)
#ifndef MUDUO_BASE_THREAD_H
#define MUDUO_BASE_THREAD_H
#include "./Atomic.h"
#include <boost/function.hpp>
#in... |
infancy/ky | smallpt/erand48.h | <gh_stars>1-10
/*-------------------------------------------------------------------------
*
* erand48.c
*
* This file supplies versions of erand48(), lrand48(), and srand48()
* for machines that lack them. (These are all the members of the drand48
* family that Postgres currently requires. We name the fi... |
enbiso/esp-restclient | RestClient.h | #ifndef RestClient_h
#define RestClient_h
#include <Arduino.h>
#include <WiFiClientSecure.h>
class RestClient
{
public:
RestClient(String host)
{
RestClient(host, 80);
}
RestClient(String host, int port)
{
RestClient(host, port, "http");
}
RestClient(String host, int po... |
DeveloperLY/LYXcodeExtension | LYXcodeExtension/ViewController.h | <reponame>DeveloperLY/LYXcodeExtension<gh_stars>0
//
// ViewController.h
// LYXcodeExtension
//
// Created by LiuY on 2019/9/18.
// Copyright © 2019 DeveloperLY. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface ViewController : NSViewController
@end
|
DeveloperLY/LYXcodeExtension | LYExtension/SourceEditorCommand.h | //
// SourceEditorCommand.h
// LYExtension
//
// Created by LiuY on 2019/9/18.
// Copyright © 2019 DeveloperLY. All rights reserved.
//
#import <XcodeKit/XcodeKit.h>
@interface SourceEditorCommand : NSObject <XCSourceEditorCommand>
@end
|
DeveloperLY/LYXcodeExtension | LYExtension/Tools/NSMutableArray+LYExtension.h | //
// NSMutableArray+LYExtension.h
// LYExtension
//
// Created by LiuY on 2019/9/18.
// Copyright © 2019 DeveloperLY. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSMutableArray (LYExtension)
- (NSInteger)indexOfFirstItemContainStrsArray:(NSArray *)strsArray;
... |
DeveloperLY/LYXcodeExtension | LYXcodeExtension/AppDelegate.h | //
// AppDelegate.h
// LYXcodeExtension
//
// Created by LiuY on 2019/9/18.
// Copyright © 2019 DeveloperLY. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate>
@end
|
DeveloperLY/LYXcodeExtension | LYExtension/AddImport/LYAddImportManager.h | <gh_stars>0
//
// LYAddImportManager.h
// LYExtension
//
// Created by LiuY on 2019/9/18.
// Copyright © 2019 DeveloperLY. All rights reserved.
//
#import <XcodeKit/XcodeKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LYAddImportManager : NSObject
+ (instancetype)sharedInstance;
- (void)processCodeWithInvocation:(... |
DeveloperLY/LYXcodeExtension | LYExtension/Tools/NSString+LYExtension.h | <gh_stars>0
//
// NSString+LYExtension.h
// LYExtension
//
// Created by LiuY on 2019/9/18.
// Copyright © 2019 DeveloperLY. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSString (LYExtension)
/*
* 返回中间字符串
* 如果 leftStr 为 nil , 则返回 rightStr 之前的字符串
*/
- (NSStri... |
DeveloperLY/LYXcodeExtension | LYExtension/AddComment/LYAddCommentManager.h | //
// LYAddCommentManager.h
// LYExtension
//
// Created by LiuY on 2019/9/18.
// Copyright © 2019 DeveloperLY. All rights reserved.
//
#import <XcodeKit/XcodeKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LYAddCommentManager : NSObject
+ (instancetype)sharedInstance;
- (void)processCodeWithInvocation:(XCSourceEd... |
tsturm/flatbuffers | tests/namespace_test/namespace_test1_generated.h | // automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_NAMESPACETEST1_NAMESPACEA_NAMESPACEB_H_
#define FLATBUFFERS_GENERATED_NAMESPACETEST1_NAMESPACEA_NAMESPACEB_H_
#include "flatbuffers/flatbuffers.h"
namespace NamespaceA {
namespace NamespaceB {
struct TableInNestedNS... |
tsturm/flatbuffers | include/flatbuffers/default_allocator.h | /*
* Copyright 2021 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
tsturm/flatbuffers | include/flatbuffers/grpc.h | /*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
tsturm/flatbuffers | benchmarks/cpp/bench.h | <gh_stars>0
#ifndef BENCHMARKS_CPP_BENCH_H_
#define BENCHMARKS_CPP_BENCH_H_
#include <cstdint>
struct Bench {
virtual ~Bench() {}
inline void Add(int64_t value) { sum += value; }
virtual uint8_t *Encode(void *buf, int64_t &len) = 0;
virtual void *Decode(void *buf, int64_t len) = 0;
virtual int64_t Use(voi... |
tsturm/flatbuffers | include/flatbuffers/detached_buffer.h | /*
* Copyright 2021 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
tsturm/flatbuffers | grpc/src/compiler/ts_generator.h | <reponame>tsturm/flatbuffers
#include <memory>
#include <set>
#include <vector>
#include "src/compiler/schema_interface.h"
#ifndef GRPC_CUSTOM_STRING
# include <string>
# define GRPC_CUSTOM_STRING std::string
#endif
namespace grpc {
typedef GRPC_CUSTOM_STRING string;
} // namespace grpc
namespace grpc_ts_gener... |
tsturm/flatbuffers | include/flatbuffers/buffer_ref.h | <filename>include/flatbuffers/buffer_ref.h
/*
* Copyright 2021 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/L... |
tsturm/flatbuffers | include/flatbuffers/allocator.h | <reponame>tsturm/flatbuffers<gh_stars>10-100
/*
* Copyright 2021 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses... |
tsturm/flatbuffers | benchmarks/cpp/flatbuffers/fb_bench.h | <gh_stars>0
#ifndef BENCHMARKS_CPP_FLATBUFFERS_FB_BENCH_H_
#define BENCHMARKS_CPP_FLATBUFFERS_FB_BENCH_H_
#include <cstdint>
#include <memory>
#include "benchmarks/cpp/bench.h"
#include "include/flatbuffers/flatbuffers.h"
struct StaticAllocator : public flatbuffers::Allocator {
explicit StaticAllocator(uint8_t *bu... |
tsturm/flatbuffers | benchmarks/cpp/raw/raw_bench.h | #ifndef BENCHMARKS_CPP_RAW_RAW_BENCH_H_
#define BENCHMARKS_CPP_RAW_RAW_BENCH_H_
#include <memory>
#include "benchmarks/cpp/bench.h"
std::unique_ptr<Bench> NewRawBench();
#endif // BENCHMARKS_CPP_RAW_RAW_BENCH_H_ |
tsturm/flatbuffers | grpc/src/compiler/go_generator.h | <gh_stars>0
#ifndef GRPC_INTERNAL_COMPILER_GO_GENERATOR_H
#define GRPC_INTERNAL_COMPILER_GO_GENERATOR_H
// go generator is used to generate GRPC code for serialization system, such as
// flatbuffers
#include <memory>
#include <vector>
#include "src/compiler/schema_interface.h"
namespace grpc_go_generator {
struct P... |
tsturm/flatbuffers | include/flatbuffers/string.h | /*
* Copyright 2021 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
tsturm/flatbuffers | include/flatbuffers/bfbs_generator.h | /*
* Copyright 2021 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
MaxDesiatov/swift-corelibs-foundation | CoreFoundation/Base.subproj/CFAsmMacros.h | // This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the l... |
MaxDesiatov/swift-corelibs-foundation | CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h | <reponame>MaxDesiatov/swift-corelibs-foundation
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
//... |
MaxDesiatov/swift-corelibs-foundation | CoreFoundation/Locale.subproj/CFNumberFormatter.c | <gh_stars>1-10
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTOR... |
bdice/pymbar | pymbar/_pymbar.c | /*
C helper module for time-critical MBAR routines.
#=============================================================================================
# VERSION CONTROL INFORMATION
#=============================================================================================
__version__ = "$Revision: $ $Date: $"
# $Date:... |
ashwinma/shoc-experiments | src/opencl/common/shoc_compat_cas.h | <filename>src/opencl/common/shoc_compat_cas.h<gh_stars>1-10
#ifndef SHOC_COMPAT_CAS_H
#define SHOC_COMPAT_CAS_H
#if defined( __PGI )
#if defined( __x86_64 )
inline
int
__sync_val_compare_and_swap( volatile int* destptr, int testval, int newval )
{
int retval;
__asm__ __volatile__ ("lock; cmpxchg %2, %1"
... |
ashwinma/shoc-experiments | src/cuda/level1/scan/scan_kernel.h | <gh_stars>1-10
#ifndef SCAN_KERNEL_H_
#define SCAN_KERNEL_H_
#include <cuda.h>
// NB: The following class is a workaround for using dynamically sized
// shared memory in templated code. Without this workaround, the
// compiler would generate two shared memory arrays (one for SP
// and one for DP) of the same name and... |
wesklei/OCEV | mersenne.c | <reponame>wesklei/OCEV<filename>mersenne.c
/*===============================================================================================================
G E R A D O R M E R S E N N E T W I S T E R
================================================================================================... |
wesklei/OCEV | functions.c | <filename>functions.c
/*
Description: The ANSI C code of the PRVNS approach
Programmer: <NAME>
E-mail: <EMAIL>
Date: 04/11/2014
Lisence: Free
Note: The system was developed using Linux.
To compile: Type: make
To run: ./algorithm input.in
*/
#include "functions.h"
void prepararObjFunc(int* FUNC... |
wesklei/OCEV | main.c | /*
Description: The ANSI C code of the PRVNS approach
Programmer: <NAME>
E-mail: <EMAIL>
Date: 04/11/2014
Lisence: Free
Note: The system was developed using Linux.
To compile: Type: make
To run: ./algorithm input.in
*/
#ifndef max... |
wesklei/OCEV | functions.h | <reponame>wesklei/OCEV
/*
Description: The ANSI C code of the PRVNS approach
Programmer: <NAME>
E-mail: <EMAIL>
Date: 04/11/2014
Lisence: Free
Note: The system was developed using Linux.
To compile: Type: make
To run: ./algorithm in... |
wesklei/OCEV | mersenne.h | <reponame>wesklei/OCEV
#include <math.h>
#include <time.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//<NAME>
enum { N = 624 }; // length of state vector
enum { M = 397 }; // period parameter
unsigned long state[N]; // internal state
unsigned long *pNext; ... |
SGBotic/SGBotic_FN_MP3 | SGBotic_FN_MP3.h | /***************************************************
This is a library for our Mini MP3 Module (DEV-02247)
http://www.sgbotic.com/index.php?dispatch=products.view&product_id=2247
Written by KC for SGBotic.com
BSD license, all text above must be included in any redistribution
*******************************... |
Tamookk/Basil | Basil/include/Math/Math.h | <reponame>Tamookk/Basil
/*
* This header file declares a wrapper for glm, and some functions to suit the project's needs.
*/
#pragma once
#include <glm/glm.hpp>
namespace Basil::Math
{
bool decomposeTransform(const glm::mat4& transform, glm::vec3& outTranslation, glm::vec3& outRotation, glm::vec3& outScale);
} |
Tamookk/Basil | Basil/include/Core/Input.h | /*
* This file defines the Input base class that all other input classes
* inherit from. It is a singleton and involves multiple static functions
* for polling input.
*/
#pragma once
#include <utility>
#include "Core/Core.h"
#include "Core/KeyCodes.h"
#include "Core/MouseCodes.h"
namespace Basil
{
class Input
... |
Tamookk/Basil | Basil/include/Scene/ScriptableEntity.h | /*
* This header declares a class for an entity that can be scripted.
*/
#pragma once
#include "Scene/Entity.h"
namespace Basil
{
class ScriptableEntity
{
public:
virtual ~ScriptableEntity() {}
template <typename T>
T& getComponent()
{
return entity.getComponent<T>();
}
protected:
virtu... |
Tamookk/Basil | Basil/include/Renderer/OrthographicCameraController.h | /*
* This header declares a class that is a wrapper around OrthographicCamera.
*/
#pragma once
#include "Core/Timestep.h"
#include "Events/ApplicationEvent.h"
#include "Events/MouseEvent.h"
#include "Renderer/OrthographicCamera.h"
namespace Basil
{
class OrthographicCameraController
{
public:
OrthographicCam... |
Tamookk/Basil | Basil/include/Scene/SceneSerializer.h | /*
* This header declares a class for serializing scenes.
*/
#pragma once
#include "Scene/Scene.h"
namespace Basil
{
class SceneSerializer
{
public:
SceneSerializer(const Shared<Scene>& scene);
void serialize(const std::string& filePath);
void serializeRuntime(const std::string& filePath);
bool dese... |
Tamookk/Basil | Basil/include/ImGui/ImGuiLayer.h | <filename>Basil/include/ImGui/ImGuiLayer.h
/*
* This header file defines the ImGui layer of Basil.
*/
#pragma once
#include "Core/Layer.h"
#include "Events/KeyEvent.h"
#include "Events/MouseEvent.h"
namespace Basil
{
class ImGuiLayer : public Layer
{
public:
ImGuiLayer();
~ImGuiLayer() {}
void onAttach... |
Tamookk/Basil | Basil/include/Core/Core.h | <reponame>Tamookk/Basil
/*
* This header file is used by the engine, and games
* created using it, to make various definitions and
* declare various macros.
*/
#pragma once
#include <memory>
#ifdef DEBUG
#ifdef PLATFORM_WINDOWS
#define DEBUG_BREAK() __debugbreak()
#else
#error "Platform doesn't support deb... |
Tamookk/Basil | Basil/include/Renderer/GraphicsContext.h | <filename>Basil/include/Renderer/GraphicsContext.h<gh_stars>0
/*
* This header defines the rendering context, which is a parent class for API-specific graphics contexts.
*/
#pragma once
namespace Basil
{
class GraphicsContext
{
public:
virtual void init() = 0;
virtual void swapBuffers() = 0;
static Uniq... |
Tamookk/Basil | Basil/include/Renderer/Shader.h | /*
* This header file declares a class for creating an OpenGL shader.
*/
#pragma once
#include <string>
#include "Core/Core.h"
#include <glm/glm.hpp>
namespace Basil
{
class Shader
{
public:
virtual ~Shader() {}
virtual void bind() const = 0;
virtual void unbind() const = 0;
virtual const std::str... |
Tamookk/Basil | Sandbox/include/ExampleLayer.h | <reponame>Tamookk/Basil
/*
* Declares a class with examples of features of Basil.
*/
#pragma once
#include "Core/Basil.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <imgui.h>
class ExampleLayer : public Basil::Layer
{
public:
ExampleLayer();
void onUpdate(Basil::Timestep ... |
Tamookk/Basil | Basil/include/Platform/OpenGL/OpenGLRendererAPI.h | <gh_stars>0
/*
* This header file declares the OpenGL-specific implementation of RendererAPI.
*/
#pragma once
#include "Renderer/RendererAPI.h"
namespace Basil
{
class OpenGLRendererAPI : public RendererAPI
{
public:
void init() override;
void setViewport(unsigned int x, unsigned int y, unsigned int width... |
Tamookk/Basil | Basil/include/Renderer/UniformBuffer.h | <reponame>Tamookk/Basil
/*
* This header file declares the base class for sending uniforms to shader uniform buffers.
*/
#pragma once
#include "Core/Core.h"
namespace Basil
{
class UniformBuffer
{
public:
virtual ~UniformBuffer() {}
virtual void setData(const void* data, uint32_t size, uint32_t offset = 0... |
Tamookk/Basil | Basil/include/Renderer/OrthographicCamera.h | /*
* This header file declares an orthographic camera class.
*/
#pragma once
#include <glm/glm.hpp>
namespace Basil
{
class OrthographicCamera
{
public:
OrthographicCamera(float left, float right, float bottom, float top);
const glm::vec3& getPosition() const;
void setPosition(const glm::vec3& position... |
Tamookk/Basil | Basil/include/Platform/OpenGL/OpenGLUniformBuffer.h | /*
* This header declares the OpenGL implementation of UniformBuffer.
*/
#pragma once
#include "Renderer/UniformBuffer.h"
namespace Basil
{
class OpenGLUniformBuffer : public UniformBuffer
{
public:
OpenGLUniformBuffer(uint32_t size, uint32_t binding);
~OpenGLUniformBuffer();
void setData(const void* d... |
Tamookk/Basil | Pesto/include/Panels/SceneHierarchyPanel.h | <filename>Pesto/include/Panels/SceneHierarchyPanel.h<gh_stars>0
/*
* This header file declares a panel for displaying the hierarchy of objects within a scene.
*/
#pragma once
#include "Core/Core.h"
#include "Core/Log.h"
#include "Scene/Entity.h"
#include "Scene/Scene.h"
namespace Basil
{
class SceneHierarchyPanel
... |
Tamookk/Basil | Sandbox/include/Sandbox2D.h | /*
* Declares a class for testing 2D rendering.
*/
#pragma once
#include "Core/Basil.h"
class Sandbox2D : public Basil::Layer
{
public:
Sandbox2D();
virtual ~Sandbox2D() {}
void onAttach() override;
void onDetach() override;
void onUpdate(Basil::Timestep timeStep) override;
void onEvent(Basil::Event& e... |
Tamookk/Basil | Basil/include/Events/MouseEvent.h | /*
* This header defines mouse event classes.
*/
#pragma once
#include "Events/Event.h"
namespace Basil
{
class MouseButtonPressedEvent : public Event
{
public:
MouseButtonPressedEvent(int button);
int getMouseButton() const;
virtual EventType getEventType() const override;
static EventType getStati... |
Tamookk/Basil | Basil/include/Core/EntryPoint.h | /*
* This class manages the entry point for an application created
* using Basil.
*/
#pragma once
#include "Core/Application.h"
#include "Core/Log.h"
#ifdef PLATFORM_WINDOWS
extern Basil::Application* Basil::createApplication(ApplicationCommandLineArgs args);
int main(int argc, char* argv[])
{
// Initialise log... |
Tamookk/Basil | Basil/include/Core/UUID.h | /*
* This class manages UUIDs. For now they are randomly-generated uint64_t variables,
* as the likelihood of two UUIDs being the same using this generation method
* is 1 in 2^64 - 1. That's a big number.
*/
#pragma once
#include <xhash>
namespace Basil
{
class UUID
{
public:
UUID();
UUID(uint64_t uuid)... |
Tamookk/Basil | Basil/include/Core/Window.h | /*
* This header file declares a generic Window class.
*/
#pragma once
#include "pch.h"
#include "Core/Core.h"
#include "Events/Event.h"
namespace Basil
{
struct WindowProps
{
std::string title;
unsigned int width;
unsigned int height;
WindowProps(const std::string& title = "Basil Game Engine", unsigned ... |
Tamookk/Basil | Basil/include/Renderer/Texture2D.h | /*
* This header file contains the base class for 2D textures.
*/
#pragma once
#include <string>
#include "Core/Core.h"
#include "Renderer/Texture.h"
namespace Basil
{
class Texture2D : public Texture
{
public:
static Shared<Texture2D> create(const std::string& path);
static Shared<Texture2D> create(uint... |
Tamookk/Basil | Basil/include/Utils/PlatfomUtils.h | <gh_stars>0
/*
* This header file declares utilities implemented for each platform.
*/
#pragma once
#include <string>
namespace Basil
{
class FileDialogs
{
public:
static std::string openFile(const char* filter);
static std::string saveFile(const char* filter);
};
}
|
Tamookk/Basil | Basil/include/pch.h | /*
* Pre-compiled header for the Basil Game Engine.
*/
#pragma once
#include <array>
#include <filesystem>
#include <functional>
#include <iostream>
#include <memory>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>
#include "Core/Log.h"
#include "Debug/Instrumentor.h"
#ifdef PLATFORM_WIND... |
Tamookk/Basil | Basil/include/Events/ApplicationEvent.h | /*
* This header defines classes for events relating to the application.
*/
#pragma once
#include "Events/Event.h"
namespace Basil
{
class WindowCloseEvent : public Event
{
public:
WindowCloseEvent() = default;
EventType getEventType() const override;
static EventType getStaticType();
const char* ge... |
Tamookk/Basil | Basil/include/Platform/OpenGL/OpenGLIndexBuffer.h | <reponame>Tamookk/Basil<filename>Basil/include/Platform/OpenGL/OpenGLIndexBuffer.h
/*
* This header file contains a class for the OpenGL-specific implementation of
* IndexBuffer.h.
*/
#pragma once
#include "Renderer/IndexBuffer.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
namespace Basil
{
class OpenGLIndex... |
Tamookk/Basil | Pesto/include/Panels/PropertiesPanel.h | <reponame>Tamookk/Basil
/*
* This header file declares a panel for displaying the properties of entities within a scene.
*/
#pragma once
#include "Core/Core.h"
#include "Core/Log.h"
#include "Scene/Entity.h"
#include "Scene/Scene.h"
namespace Basil
{
class PropertiesPanel
{
public:
PropertiesPanel() = defaul... |
Tamookk/Basil | Basil/include/Renderer/Renderer2D.h | <reponame>Tamookk/Basil
/*
* This header file declares the 2D renderer class.
*/
#pragma once
#include "Renderer/Camera.h"
#include "Renderer/EditorCamera.h"
#include "Renderer/OrthographicCamera.h"
#include "Renderer/Texture2D.h"
#include "Scene/Component.h"
namespace Basil
{
class Renderer2D
{
public:
stru... |
Tamookk/Basil | Basil/include/Core/Layer.h | /*
* This header is for defining an API layer class.
*/
#pragma once
#include "Core/Core.h"
#include "Core/Timestep.h"
#include "Events/Event.h"
namespace Basil
{
class Layer
{
public:
Layer(const std::string& name = "Layer");
virtual ~Layer() {}
virtual void onAttach() {}
virtual void onDetach() {}... |
Tamookk/Basil | Basil/include/Renderer/BufferLayout.h | /*
* This header file declares a class used for specifying the layout of buffers.
*/
#pragma once
#include <vector>
#include "Core/Core.h"
#include "Renderer/BufferElement.h"
namespace Basil
{
class BufferLayout
{
public:
BufferLayout();
BufferLayout(const std::initializer_list<BufferElement>& elements);... |
Tamookk/Basil | Basil/include/Renderer/Renderer.h | <reponame>Tamookk/Basil
/*
* This header decleares the base renderer class.
*/
#pragma once
#include "Renderer/OrthographicCamera.h"
#include "Renderer/RendererAPI.h"
#include "Renderer/Shader.h"
namespace Basil
{
class Renderer
{
public:
static void init();
static void shutdown();
static void onWindow... |
Tamookk/Basil | Basil/include/Platform/OpenGL/OpenGLContext.h | /*
* This class defines the OpenGL-specific graphics context.
*/
#pragma once
#include "Renderer/GraphicsContext.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
struct GLFWwindow;
namespace Basil
{
class OpenGLContext : public GraphicsContext
{
public:
OpenGLContext(GLFWwindow* window);
void init() ov... |
Tamookk/Basil | Basil/include/Platform/OpenGL/OpenGLVertexBuffer.h | <gh_stars>0
/*
* This header file contains a class for the OpenGL-specific implementation of
* VertexBuffer.h.
*/
#pragma once
#include "Renderer/VertexBuffer.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
namespace Basil
{
class OpenGLVertexBuffer : public VertexBuffer
{
public:
OpenGLVertexBuffer(std:... |
Tamookk/Basil | Basil/include/Core/Application.h | /*
* This class manages application run-time.
*/
#pragma once
#include "Core/Core.h"
#include "Core/Input.h"
#include "Core/LayerStack.h"
#include "Core/Timestep.h"
#include "Core/Window.h"
#include "Events/Event.h"
#include "Events/ApplicationEvent.h"
#include "ImGui/ImGuiLayer.h"
#include "Renderer/Renderer.h"
#in... |
Tamookk/Basil | Basil/include/Renderer/Framebuffer.h | <gh_stars>0
/*
* This header file declares a class for a basic frame buffer.
*/
#pragma once
#include "Core/Core.h"
namespace Basil
{
// Framebuffer texture formats
enum class FramebufferTextureFormat
{
None = 0,
// Color
RGBA8,
RED_INTEGER,
// Depth/stencil
DEPTH24STENCIL8,
// Defaults
Depth... |
Tamookk/Basil | Basil/include/Platform/OpenGL/OpenGLShader.h | /*
* OpenGL-specific implementation of Shader.h.
*/
#pragma once
#include <unordered_map>
#include "Renderer/Shader.h"
#include <glm/glm.hpp>
namespace Basil
{
typedef unsigned int GLenum; // Bad, remove eventually
class OpenGLShader : public Shader
{
public:
OpenGLShader(const std::string& filePath);
... |
Tamookk/Basil | Basil/include/Scene/Component.h | /*
* This header file defines various components.
*/
#pragma once
#include "Core/UUID.h"
#include "Renderer/Texture2D.h"
#include "Scene/SceneCamera.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/quaternion.hpp>
namespace Basil
{
struct CameraCo... |
Tamookk/Basil | Basil/include/Renderer/VertexBuffer.h | /*
* This header file contains a class for creating vertex buffers.
*/
#pragma once
#include <cstdint>
#include "Renderer/BufferLayout.h"
namespace Basil
{
class VertexBuffer
{
public:
virtual ~VertexBuffer() {};
virtual void bind() const = 0;
virtual void unbind() const = 0;
virtual void setData(c... |
Tamookk/Basil | Basil/include/Core/Basil.h | <filename>Basil/include/Core/Basil.h
/*
* This header file is for use by applications created using Basil, and not by Basil itself.
* This header will include all necessary headers needed by applications created using Basil.
*/
#pragma once
// For use by applications created using Basil, not by Basil itself
#incl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.