repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
Jovins/JSWebp | Example/JSWebp/JSWebp+Bridge+Header.h | //
// JSWebp+Bridge+Header.h
// JSWebp
//
// Created by Jovins on 2021/6/10.
// Copyright © 2021 CocoaPods. All rights reserved.
//
#import <CommonCrypto/CommonDigest.h>
#import "JSWebpImage.h"
// #import "decode.h"
// #import "demux.h"
// #import "mux_types.h"
|
cpatrick/calatk | Code/Libraries/ObjectiveFunctions/CLDDMMGeometricMetamorphosisObjectiveFunction.h | /*
*
* Copyright 2011, 2012 by the CALATK development team
*
* 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 a... |
cpatrick/calatk | Code/Libraries/Utilities/CJSONDataParser.h | <gh_stars>1-10
/*
*
* Copyright 2011, 2012 by the CALATK development team
*
* 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
*
* Unles... |
cpatrick/calatk | Code/Libraries/ObjectiveFunctions/CLDDMMMultiVelocityObjectiveFunction.h | /*
*
* Copyright 2011, 2012 by the CALATK development team
*
* 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 req... |
cpatrick/calatk | Code/Libraries/ObjectiveFunctions/CObjectiveFunctionFactory.h | <reponame>cpatrick/calatk<filename>Code/Libraries/ObjectiveFunctions/CObjectiveFunctionFactory.h
/*
*
* Copyright 2011, 2012 by the CALATK development team
*
* 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 cop... |
cpatrick/calatk | Code/Libraries/Algorithms/CLongitudinalAtlasBuilder.h | <filename>Code/Libraries/Algorithms/CLongitudinalAtlasBuilder.h
/*
*
* Copyright 2011, 2012 by the CALATK development team
*
* 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:... |
onkelDead/tascam-gtk | src/OAlsa.h | <reponame>onkelDead/tascam-gtk<filename>src/OAlsa.h
/*
Copyright 2017 <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWA... |
idea-iitd/graphgen | metrics/orca/orca.h | <filename>metrics/orca/orca.h
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <set>
#include <unordered_map>
#include <Python.h>
using namespace std;
typedef long long int64;
typedef pair<int, int> PII;
ty... |
LizWanic/Random-Numbers-C | randadd1.c | <reponame>LizWanic/Random-Numbers-C
// ----------------------------------------------------------------------
// File: randadd1.c
// ----------------------------------------------------------------------
// Description: This file implements a program that will pick a random
// number of random numbers and add them ... |
glfernando/edk2 | IntelSiliconPkg/IntelVTdDxe/VtdReg.c | /** @file
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.or... |
glfernando/edk2 | MdeModulePkg/Core/Pei/Ppi/Ppi.c | /** @file
EFI PEI Core PPI services
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be fo... |
glfernando/edk2 | OvmfPkg/IoMmuDxe/AmdSevIoMmu.c | /** @file
The protocol provides support to allocate, free, map and umap a DMA buffer
for bus master (e.g PciHostBridge). When SEV is enabled, the DMA operations
must be performed on unencrypted buffer hence we use a bounce buffer to map
the guest buffer into an unencrypted DMA buffer.
Copyright (c) 2... |
glfernando/edk2 | EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c | <filename>EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c
/** @file
*
* Copyright (c) 2011-2015, ARM Limited. All rights reserved.
*
* This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License
* which accompanies this distribution. The fu... |
glfernando/edk2 | IntelSiliconPkg/IntelVTdDxe/PciInfo.c | /** @file
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.or... |
glfernando/edk2 | IntelSiliconPkg/IntelVTdDxe/DmaProtection.c | /** @file
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.or... |
Xirdus/dircrawl | dircrawl_winapi.h | /* The MIT License (MIT)
*
* Copyright (c) 2014 Xirdus
*
* Original source: https://github.com/Xirdus/dircrawl
*
* 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 restri... |
Xirdus/dircrawl | dircrawl_posix.h | <filename>dircrawl_posix.h<gh_stars>1-10
/* The MIT License (MIT)
*
* Copyright (c) 2014 Xirdus
*
* Original source: https://github.com/Xirdus/dircrawl
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), t... |
Xirdus/dircrawl | dircrawl.h | /* The MIT License (MIT)
*
* Copyright (c) 2014 Xirdus
*
* Original source: https://github.com/Xirdus/dircrawl
*
* 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, ... |
altereg0/Automaton | examples/knight_rider2/Atm_sweep.h | <filename>examples/knight_rider2/Atm_sweep.h
#pragma once
#include <Automaton.h>
class Atm_sweep: public Machine {
public:
Atm_sweep( void ) : Machine() {};
enum { IDLE, U0, U1, U2, U3, U4, U5, D4, D3, D2, D1, D0 };
enum { EVT_TIMER, EVT_START, EVT_STOP, EVT_TOGGLE, ELSE };
enum { ENT_L0, ENT_L1, ... |
altereg0/Automaton | src/Automaton.h | <filename>src/Automaton.h
/*
Automaton.h - Reactive State Machine Framework for Arduino.
Published under the MIT License (MIT), Copyright (c) 2015-2016, <NAME>
*/
#ifndef AUTOMATON_H_
#define AUTOMATON_H_
#include <avr/pgmspace.h>
#include <SystemClock.h>
#include <ArduinoPins.h>
#include <USART0.h>
... |
atoy40/clixon | lib/src/clixon_yang_internal.h | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/src/clixon_xml.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/src/clixon_nacm.c | <reponame>atoy40/clixon
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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
... |
atoy40/clixon | lib/src/clixon_yang.c | <reponame>atoy40/clixon<filename>lib/src/clixon_yang.c
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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 ... |
atoy40/clixon | include/clixon_custom.h | <reponame>atoy40/clixon
/*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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
... |
atoy40/clixon | lib/clixon/clixon_options.h | <filename>lib/clixon/clixon_options.h
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/src/clixon_yang_module.c | <reponame>atoy40/clixon<filename>lib/src/clixon_yang_module.c<gh_stars>0
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ... |
atoy40/clixon | lib/src/clixon_string.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/clixon/clixon_xpath.h | <filename>lib/clixon/clixon_xpath.h
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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
... |
atoy40/clixon | example/main/example_netconf.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/clixon/clixon_string.h | <filename>lib/clixon/clixon_string.h
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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 ... |
atoy40/clixon | lib/clixon/clixon_xml.h | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | util/clixon_util_insert.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | apps/cli/cli_main.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/src/clixon_regex.c | <reponame>atoy40/clixon
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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
... |
atoy40/clixon | apps/restconf/restconf_methods_post.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/clixon/clixon_log.h | <reponame>atoy40/clixon<filename>lib/clixon/clixon_log.h
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may o... |
atoy40/clixon | lib/src/clixon_xpath_ctx.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/src/clixon_xml_map.c | <filename>lib/src/clixon_xml_map.c<gh_stars>0
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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 cop... |
atoy40/clixon | lib/src/clixon_event.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | apps/restconf/restconf_main.c | <gh_stars>0
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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.or... |
atoy40/clixon | lib/clixon/clixon_yang.h | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | apps/backend/backend_startup.c | <filename>apps/backend/backend_startup.c
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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 ... |
atoy40/clixon | lib/src/clixon_xpath.c | <reponame>atoy40/clixon
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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://w... |
atoy40/clixon | lib/src/clixon_xml_sort.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/src/clixon_yang_parse.h | <reponame>atoy40/clixon
/*
* Yang 1.0 parser according to RFC6020.
* It is hopefully useful but not complete
* RFC7950 defines Yang version 1.1
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
Licensed under the Apache License, Version 2.0 (the "License");
... |
atoy40/clixon | apps/backend/backend_main.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | lib/src/clixon_datastore_tree.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
atoy40/clixon | apps/restconf/restconf_lib.c | <filename>apps/restconf/restconf_lib.c
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME>
This file is part of CLIXON.
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 a... |
atoy40/clixon | lib/src/clixon_datastore_tree.h | <reponame>atoy40/clixon<filename>lib/src/clixon_datastore_tree.h<gh_stars>0
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the L... |
atoy40/clixon | apps/cli/cli_plugin.c | /*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2019 <NAME> and <NAME>
This file is part of CLIXON.
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... |
bennedich/emscripten-renderer-examples | ex_common/system_render.h | <reponame>bennedich/emscripten-renderer-examples<gh_stars>1-10
#pragma once
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include <xgfx/headers_gl.h>
#include <xgfx/render_queue.h>
#include <xecs/system.h>
#include "component_camera.h"
namespace
{
inline bool compare_render_key( xgfx::... |
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/headers_gl.h | #pragma once
#include <SDL.h>
#ifdef __EMSCRIPTEN__
//#include <SDL_opengl.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <emscripten.h>
#else
#include <glad/glad.h>
#endif
|
bennedich/emscripten-renderer-examples | lib/xecs/xecs/type.h | #pragma once
#include <cstdint>
namespace xecs
{
typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
}
|
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/shader_loader.h | #pragma once
#include "headers_type.h"
namespace xgfx
{
class IShaderLoader
{
public:
virtual ~IShaderLoader() {}
virtual bool load( const char* vert, const char* frag, u32& prog_handle ) const = 0;
virtual void unload( const u32 prog_handle ) const = 0;
};
class ShaderLoader_OpenGL : public IShaderLoade... |
bennedich/emscripten-renderer-examples | ex_common/system_tick.h | #pragma once
#include <memory>
#include <SDL.h>
#include <xecs/system.h>
#include "time_delta.h"
class SystemTick : public xecs::System
{
std::shared_ptr< TimeDelta > _time;
public:
explicit SystemTick( std::shared_ptr<TimeDelta> time )
: _time( time )
{
_time->t0 = SDL_GetTicks() - 17;
}
virtual void tick... |
bennedich/emscripten-renderer-examples | ex_common/input_context.h | #pragma once
struct InputContext
{
float move_x;
float move_y;
float move_z;
float rotate_x;
float rotate_y;
float rotate_z;
}; |
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/mesh.h | <gh_stars>1-10
#pragma once
#include "headers_type.h"
namespace xgfx
{
struct Mesh
{
union
{
u32 raw[ 4 ];
struct { u32 vbo_n, ibo_n, vbo, ibo; };
};
};
} |
bennedich/emscripten-renderer-examples | lib/xecs/xecs/system.h | #pragma once
namespace xecs
{
class System
{
public:
virtual ~System() {}
virtual void tick() {}
};
}
|
bennedich/emscripten-renderer-examples | lib/xecs/xecs/entity_aux.h | <reponame>bennedich/emscripten-renderer-examples<gh_stars>1-10
#pragma once
#include "xecs/type.h"
namespace xecs
{
namespace entity_aux
{
const u32 INDEX_BITS = 22;
const u32 GENERATION_BITS = 8;
const u32 INDEX_MASK = ( 1 << INDEX_BITS ) - 1;
const u32 GENERATION_MASK = ( 1 << GENERATION_BITS ) - 1;
con... |
bennedich/emscripten-renderer-examples | ex3/system_entrypoint.h | <filename>ex3/system_entrypoint.h
#pragma once
#include <xecs/system.h>
#include <xecs/entity_manager.h>
#include <xgfx/render_key.h>
#include <xgfx/render_command.h>
#include <xgfx/render_queue.h>
#include <xgfx/render_func.h>
#include <xgfx/shader_loader.h>
#include <xgfx/mesh_loader.h>
#include "render_funcs.h"
#... |
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/render_command.h | #pragma once
#include "headers_type.h"
#include "render_func.h"
#include "render_data.h"
namespace xgfx
{
struct RenderCommand
{
RenderFunc func;
RenderData data;
};
}
|
bennedich/emscripten-renderer-examples | ex_common/system_movement.h | <reponame>bennedich/emscripten-renderer-examples
#pragma once
#include <memory>
#include <algorithm> // std::min
#include <glm/vec3.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/transform.hpp> // glm::translate, glm::rotate, glm::scale
#include <xecs/entity.h>
#include <xecs/sy... |
bennedich/emscripten-renderer-examples | ex_common/time_delta.h | #pragma once
#include "xecs/type.h"
using xecs::u32;
struct TimeDelta
{
u32 t0;
u32 t1;
u32 dt;
};
|
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/render_data.h | <gh_stars>1-10
#pragma once
namespace xgfx
{
const u32 RENDER_DATA_SIZE = 120;
struct RenderData
{
char raw[ RENDER_DATA_SIZE ];
};
}
|
bennedich/emscripten-renderer-examples | ex_common/component_physics.h | #pragma once
#include <xecs/component.h>
#include <glm/vec3.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/quaternion.hpp>
using std::vector;
using glm::vec3;
using glm::quat;
using glm::mat4;
using xecs::Entity;
class ComponentPhysics : public xecs::Component< ComponentPhysics >
{
public:
struct InstanceData
{... |
bennedich/emscripten-renderer-examples | ex_common/component_camera.h | <reponame>bennedich/emscripten-renderer-examples
#pragma once
#include <xecs/component.h>
#include <glm/vec3.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/quaternion.hpp>
using std::vector;
using glm::vec3;
using glm::quat;
using glm::mat4;
using xecs::Entity;
class ComponentCamera : public xecs::Component< Comp... |
bennedich/emscripten-renderer-examples | lib/xecs/xecs/component.h | <filename>lib/xecs/xecs/component.h
#pragma once
#include <vector>
#include <unordered_map>
#include <limits>
#include "xecs/type.h"
#include "xecs/entity.h"
namespace xecs
{
template< typename T >
class Component
{
u32 _capacity;
u32 _size;
protected:
std::unordered_map< u32, u32 > _index;
template< t... |
bennedich/emscripten-renderer-examples | ex_common/component_transform.h | #pragma once
#include <xecs/component.h>
#include <glm/vec3.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/quaternion.hpp>
using std::vector;
using glm::vec3;
using glm::quat;
using glm::mat4;
using xecs::Entity;
class ComponentTransform : public xecs::Component< ComponentTransform >
{
public:
struct InstanceDat... |
bennedich/emscripten-renderer-examples | lib/xecs/xecs/entity_manager.h | #pragma once
#include <vector>
#include <deque>
#include "xecs/type.h"
#include "xecs/entity.h"
namespace xecs
{
class EntityManager
{
std::vector<unsigned char> _generation;
std::deque<unsigned> _free_indices;
public:
EntityManager()
{
_generation.reserve( entity_aux::MINIMUM_FREE_INDICES );
... |
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/render_queue.h | #pragma once
#include <vector>
#include "headers_type.h"
#include "render_key.h"
#include "render_command.h"
namespace xgfx
{
struct RenderQueue
{
u32 size = 0;
std::vector< RenderKey > key;
std::vector< RenderCommand > cmd;
};
}
|
bennedich/emscripten-renderer-examples | ex_common/system_camera.h | <reponame>bennedich/emscripten-renderer-examples<filename>ex_common/system_camera.h
#pragma once
#include <SDL.h>
#include <xecs/system.h>
#include "component_transform.h"
#include "component_camera.h"
class SystemCamera : public xecs::System
{
SDL_Window* _sdl_window;
std::shared_ptr<Com... |
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/render_func.h | #pragma once
namespace xgfx
{
struct RenderData;
typedef void ( *RenderFunc )( const void*, const RenderData* );
}
|
bennedich/emscripten-renderer-examples | ex3/render_funcs.h | <reponame>bennedich/emscripten-renderer-examples
#pragma once
#include <glm/gtc/type_ptr.hpp> // glm::value_ptr
#include <xgfx/render_func.h>
#include <xgfx/render_command.h>
#include "system_render.h"
struct VertexBitmap
{
float pos[ 3 ];
float uv[ 2 ];
};
union RenderDataBitmap
{
xgfx::RenderData raw;... |
bennedich/emscripten-renderer-examples | lib/xecs/xecs/application.h | <reponame>bennedich/emscripten-renderer-examples
#pragma once
#include <memory>
#include <vector>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
#include "xecs/system.h"
namespace xecs
{
class Application
{
std::shared_ptr<bool> _stay_alive;
std::vector< std::shared_ptr<System> > _systems;
inline vo... |
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/render_key.h | <reponame>bennedich/emscripten-renderer-examples
#pragma once
#define RENDER_INPUT_BITS_DATA_INDEX 13
#define RENDER_INPUT_BITS_DEPTH 8
#define RENDER_INPUT_ARRAY_SIZE 1 << RENDER_INPUT_BITS_DATA_INDEX
#define RENDER_INPUT_DATA_INDEX u32 data_index : RENDER_INPUT_BITS_DATA_INDEX;
#define RENDER_INPUT_M... |
bennedich/emscripten-renderer-examples | ex_common/system_input.h | <reponame>bennedich/emscripten-renderer-examples
#pragma once
#include <string> // std::memset
#include <xecs/system.h>
#include "input_context.h"
class SystemInput : public xecs::System
{
std::shared_ptr<bool> _stay_alive;
std::shared_ptr<InputContext> _input_context;
public:
explicit SystemInput( std::... |
bennedich/emscripten-renderer-examples | lib/xecs/xecs/entity.h | <reponame>bennedich/emscripten-renderer-examples
#pragma once
#include "xecs/type.h"
#include "xecs/entity_aux.h"
namespace xecs
{
struct Entity
{
u32 id;
inline u32 index() const { return id & entity_aux::INDEX_MASK; }
inline u32 generation() const { return ( id >> entity_aux::INDEX_BITS ) & entity_aux::GENE... |
bennedich/emscripten-renderer-examples | lib/xgfx/xgfx/mesh_loader.h | <gh_stars>1-10
#pragma once
#include "headers_type.h"
#include "mesh.h"
namespace xgfx
{
class IMeshLoader
{
public:
virtual ~IMeshLoader() {}
virtual Mesh load( const u32 vertices_n, const void* vertices, const u32 indices_n = 0, const void* indices = 0 ) const = 0;
virtual void unload( const Mesh& mesh ) c... |
willdavis/playacuda | src/color_wheel.h | #ifndef COLOR_WHEEL_H
#define COLOR_WHEEL_H
uint8_t current_hue = 0;
#endif
|
willdavis/playacuda | src/patterns/juggle.h | #include "led_channels.h"
void juggle() {
fadeToBlackBy(tail_leds, SHORT_LENGTH_LEDS, 20);
fadeToBlackBy(body_leds, LONG_LENGTH_LEDS, 20);
fadeToBlackBy(lips_leds, MEDIUM_LENGTH_LEDS, 20);
byte dothue = 0;
for(int i = 0; i < 8; i++) {
tail_leds[beatsin16(i+7,0,SHORT_LENGTH_LEDS-1)] |= CHSV(dothue, 200, ... |
willdavis/playacuda | src/patterns/idle.h | #include "led_channels.h"
#include "color_wheel.h"
// lazy pattern to save power
// used when POWER_MODE_PIN = LOW
void idle()
{
uint8_t beat = beatsin8(62, 64, 255);
CRGBPalette16 palette = PartyColors_p;
CRGB color;
fadeToBlackBy(teeth_leds, TEETH_LENGTH_LEDS, 20);
fadeToBlackBy(ribs_leds, RIB_LENGTH_LEDS... |
willdavis/playacuda | src/patterns/fuego.h | <gh_stars>0
#include "led_channels.h"
#include "color_wheel.h"
#define COOLING 55
#define SPARKING 120
byte heat[SHORT_LENGTH_LEDS];
CRGB heat_color;
// Fire2012 by <NAME>, July 2012
void fuego()
{
fadeToBlackBy(body_leds, LONG_LENGTH_LEDS, 20);
fadeToBlackBy(lips_leds, MEDIUM_LENGTH_LEDS, 20);
for(int i=0; ... |
willdavis/playacuda | src/led_channels.h | <reponame>willdavis/playacuda<filename>src/led_channels.h
#ifndef LED_CHANNELS_H
#define LED_CHANNELS_H
#define COLOR_ORDER GRB
#define CHIPSET WS2811
#define MIN_BRIGHTNESS 50
#define MAX_BRIGHTNESS 200
#define FRAMES_PER_SECOND 60
#define SHORT_LENGTH_LEDS 30
#define MEDIUM_LENGTH_LEDS 45
#... |
willdavis/playacuda | src/patterns/confetti.h | #include "led_channels.h"
#include "color_wheel.h"
void confetti()
{
fadeToBlackBy(tail_leds, SHORT_LENGTH_LEDS, 10);
fadeToBlackBy(body_leds, LONG_LENGTH_LEDS, 10);
fadeToBlackBy(lips_leds, MEDIUM_LENGTH_LEDS, 10);
int short_pos = random16(SHORT_LENGTH_LEDS);
int long_pos = random16(LONG_LENGTH_LEDS);
in... |
willdavis/playacuda | src/patterns/pulse.h | #include "led_channels.h"
#include "color_wheel.h"
// colored stripes pulsing at a defined Beats-Per-Minute (BPM)
void pulse()
{
uint8_t beat = beatsin8(62, 64, 255);
CRGBPalette16 palette = PartyColors_p;
for(int i = 0; i < SHORT_LENGTH_LEDS; i++) {
tail_leds[i] = ColorFromPalette(palette, current_hue+(i*2... |
jivadevoe/RandomLib | NSMutableArray+Utils.h | //
// NSMutableArray_Utils.h
//
// Created by <NAME> on 2/13/08.
// Copyright 2008 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSMutableArray (Utils)
-(void)unique;
-(void)moveObjectFromIndex:(NSUInteger)from toIndex:(NSUInteger)to;
@end
|
jivadevoe/RandomLib | NSDate+Utils.h | <gh_stars>1-10
//
// NSDate_Utils.h
//
// Created by <NAME> on 8/3/08.
// Copyright 2008 Random Ideas, LLC. All rights reserved.
//
#if TARGET_OS_IPHONE // iPhone SDK
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif
/** Various utilities for NSDate. Some of these are fairly specific to some needs I had... |
jivadevoe/RandomLib | Server.h | //
// Server.h
// Lesson 5
//
// Created by <NAME> on 9/24/13.
// Copyright (c) 2013 Random Ideas. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Server : NSObject
/// If YES, if no action has been configured for the path, the server will search the application's Documents directory for a fi... |
jivadevoe/RandomLib | NSMutableURLRequest+Posts.h | <reponame>jivadevoe/RandomLib
//
// NSMutableURLRequest+Posts.h
//
// Created by <NAME> on 3/20/10.
// Copyright 2010 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
/** Various utilities for working with NSMutableURLRequests.
*/
@interface NSMutableURLRequest (Posts)
/// Creates an ... |
jivadevoe/RandomLib | CustomViewLoader.h | <reponame>jivadevoe/RandomLib
//
// CustomViewLoader.h
//
// Created by <NAME> on 5/4/10.
// Copyright 2010 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CustomViewLoader : NSObject
{
IBOutlet UIView *view;
NSString *nibName;
}
@property (strong, nonatomic) UIView * vi... |
jivadevoe/RandomLib | NSData+Base64.h | //
// NSData_Base64.h
//
// Created by <NAME> on 12/16/08.
// Copyright 2008 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
/** Category that serializes and deserializes an NSData to/from a base64 encoded string.
*/
@interface NSData (Base64)
/// Convert a base64 encoded string to an ... |
jivadevoe/RandomLib | HelpViewController.h | <gh_stars>1-10
//
// HelpViewController.h
//
// Created by <NAME> on 5/10/09.
// Copyright 2009 Random Ideas, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ViewControllerDelegate.h"
@interface HelpViewController : UIViewController
@property (weak, nonatomic) id<ViewControllerDelegate> delegate;
@... |
jivadevoe/RandomLib | UIView+Positioning.h | <filename>UIView+Positioning.h<gh_stars>1-10
//
// UIView_Positioning.h
//
// Created by <NAME> on 8/4/09.
// Copyright 2009 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
/// These category methods are probably pretty dangerous. Their purpose is to allow you to quickly and easily po... |
jivadevoe/RandomLib | UIViewController+Slick.h | <filename>UIViewController+Slick.h
//
// UIViewController+Slick.h
//
// Created by <NAME> on 7/22/10.
// Copyright 2010-2012 Random Ideas, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol SlickViewControllerDelegate <NSObject>
@optional
-(void)slickViewControllerDidDismiss:(UIViewController *)inCont... |
jivadevoe/RandomLib | NSObject+BlockObservation.h | //
// NSObject+BlockObservation.h
// Version 1.0
//
// <NAME>
// <EMAIL>
// Public domain because I love you. Let me know how you use it.
//
#if !TARGET_OS_IPHONE // iPhone SDK
#import <Cocoa/Cocoa.h>
#else
#import <UIKit/UIKit.h>
#endif
typedef NSString AMBlockToken;
typedef void (^AMBlockTask)(id obj, NSDictio... |
jivadevoe/RandomLib | RILog.h | <gh_stars>1-10
//
// RILog.h
//
// Created by <NAME> on 11/22/12.
// Copyright (c) 2012 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(int, RILogLevel)
{
RI_LOG_NONE = 0,
RI_LOG_ERROR = 100,
RI_LOG_WARN = 200,
RI_LOG_INFO = 300,
RI_LOG_DEBUG = 400
}... |
jivadevoe/RandomLib | ViewControllerDelegate.h | <gh_stars>1-10
/** This is a simple delegate that I use sometimes when I want to tell another object when a view controller has finished it's work.
*/
@protocol ViewControllerDelegate <NSObject>
/// Required method. Called when the view controller has finished whatever work it's doing successfully.
-(void)viewCont... |
jivadevoe/RandomLib | JSONWebCommand.h | <reponame>jivadevoe/RandomLib<filename>JSONWebCommand.h
//
// JSONWebCommand.h
//
// Created by <NAME> on 9/22/10.
// Copyright (c) 2010 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface JSONWebCommand : NSObject
@property (strong, nonatomic) NSOperationQueue *parseOpQueue;
... |
jivadevoe/RandomLib | NSArray+Utils.h | //
// NSArray+Utils.h
//
// Created by <NAME> on 12/21/11.
// Copyright (c) 2011 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSArray (Utils)
/// C'mon.. everyone has one of these. Mine works even if the array is zero length. It returns nil.
-(id)firstObject;
+(id)arra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.