text
stringlengths
5.71k
33.7k
#include <SDL2/SDL_image.h> #include <iostream> #include <string> using namespace std; #include "Rect.h" #include "Pattern.h" #include "Window.h" #include "Functions.h" #include "Selector.h" #include "Synth_mk1.h" Rect::Rect(int w, int h, int x, int y, int r, int g, int b, int a) :_w(w), _h(h), _x(x), _y(y), _r(r), _...
#include <SFML/Window.hpp> #include <SFML/Graphics.hpp> #include<SFML/System.hpp> #include<iostream> #include<thread> #include<windows.h> #include <stdlib.h> #include <time.h> #include <stdio.h> #include "Tetramino.h" using namespace sf; Vector2f cellSize(15, 15); Tetramino tetraminos[7]; Tetramino NewTetramino()...
/* Copyright (c) 2012 <NAME>. See the LICENSE file for copying permission. */ /** * @file analyzer.cpp * @brief Contains implementations of Analyzer's functions. */ #include <fstream> #include <sstream> #include "../dawgdic/dictionary.h" #include <cstdlib> #include <cstring> #include "forms.h" #include ...
// OpenGL_3D_Renderer.cpp : Defines the entry point for the console application. // #include <fstream> #include <iostream> #include <string> #include <sstream> #include <vector> #include <GL/glew.h> #include <GLFW/glfw3.h> #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include "glm/gtc/type_ptr.hpp" ...
#include "VTKReader.h" #include"rbcgui.h" #include <string> #include <chrono> #include <thread> #include <iostream> #include <omp.h> #include <fstream> #include<QWidget> #include <QDialog> #include<QApplication> //#define DEBUG #define CHRONO #define MULTI #define ERROR namespace { //! Create a lookup table. /*! @para...
/************************************** Copyright (c) 2015, INSYEN AG All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list...
#include "scene_cube.h" #include "ifile.h" #include "mat4.h" #include "time.h" #include "vec3.h" #include "vec4.h" #include <vector> // Funciones para la creacion del cubo static void cube_points_body(std::vector<cgmath::vec3> &positions); static void cube_index(std::vector<unsigned int> &index); static void cube_col...
// // kern_shiki.cpp // WhateverGreen // // Copyright © 2018 vit9696. All rights reserved. // #include "kern_shiki.hpp" #include <Library/LegacyIOService.h> #include <Headers/plugin_start.hpp> #include <Headers/kern_api.hpp> #include <Headers/kern_cpu.hpp> #include <Headers/kern_file.hpp> #include <Headers/kern_io...
#include <string.h> #include "../../core/assert.h" #include "../../core/bufferStringStream.h" #include "../../services.h" #include "gl.h" #include "context.h" #if defined(ARPHEG_PLATFORM_X11) #include "../../application/x11window.h" #endif template<typename T> inline T enforce(T value, const char* const error = "Err...
///////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois / NCSA Open Source License. // See LICENSE file in top directory for details . // // Copyright ( c ) 2018 QMCPACK developers // // File developed by : <NAME>, <EMAIL>, S...
#include "StitchChunk.hpp" void StitchChunk::_register_methods() { godot::register_method("init", &StitchChunk::init); godot::register_method("draw", &StitchChunk::draw); godot::register_method("commit", &StitchChunk::commit); godot::register_method("toggle_dual", &StitchChunk::toggle_dual); } void StitchChunk::_...
/************************************************************/ /* NAME: <NAME> */ /* ORGN: MISSION SYSTEMS PTY LTD */ /* FILE: Cloud.cpp */ /* DATE: 24 Aug 2018 */ /**********...
/* -*- C++ -*- */ /*============================================================================= // // // This file is part of the TypeAccess/C-Super-Script software package. // // // // Copyright (C) 1995 <NAME>, <NAME>, // // <NAME>, and Carnegie Mellon University ...
#include <websocket/socket.hpp> // if the asio lib execute the taskes by multiply thread, the http_parser is not safe. #include <http_parser.h> #include <websocket/server.hpp> #include <websocket/detail/frame.hpp> #include <websocket/detail/utilities.hpp> std::pair<std::string, std::string> header_tmp_pair; std:...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2012, <NAME>, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
#include "fixpoint.h" #include <unordered_map> #include <vector> #include "llvm/IR/CFG.h" #include "llvm/IR/Module.h" #include "global.h" #include "constant_folding.h" #include "integer_domain.h" #include "linear_subspace.h" #include "normalized_conjunction.h" #include "simple_interval.h" #include "value_set.h" #i...
/* system.cpp - Copyright 2019/2021 Utrecht University 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 applicable law ...
/* # # UFFBAPS - Unified Force Field for Binding And Protein Stability # Copyright (C) 2010 <NAME> & <NAME> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Licen...
//dirtyNERDYONE -- This program plays a 2-player version of 31 // <NAME> Comp Sci 30S //Feb.5, 2020 #include <iostream> #include<windows.h> #include"colours.h" #include<time.h> #include<conio.h> #include<stdio.h> using namespace std; //Global identifiers int p1c1, p1s1, p2c1, p2s1, p1c2, p1s2, p2c...
// C++. #include <cassert> #include <sstream> // Qt. #include <QLabel> #include <QMenu> #include <QPainter> #include <QScrollBar> #include <QSortFilterProxyModel> #include <QStandardItemModel> #include <QStyledItemDelegate> // Infra. #include <QtCommon/Util/QtUtil.h> // Local. #include <RadeonGPUAnalyzerGUI/Include/...
/* * ImGui + OpenCV + GLFW */ #include "main.h" #include <glad/glad.h> #include <GLFW/glfw3.h> #include <imgui/imgui.h> #include <imgui/imgui_impl_glfw.h> #include <opencv2/opencv.hpp> #include <thread> #include <imgui/imgui_impl_opengl3.h> using namespace std; using namespace cv; GLFWwindow* window; int window...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020, STEREOLABS. // // All rights reserved. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIE...
/* * Nestopia UE * * Copyright (C) 2012-2016 <NAME> * Copyright (C) 2018-2018 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your op...
/* Copyright (c) 2018, <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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
/* * Copyright 2021 IBM Corporation * * 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 applicable law or agreed...
//////////////////////////////////////////////////////////////// // Orkid Media Engine // Copyright 1996-2020, <NAME>. // Distributed under the Boost Software License - Version 1.0 - August 17, 2003 // see http://www.boost.org/LICENSE_1_0.txt //////////////////////////////////////////////////////////////// #include <o...
#include <iostream> #include <string> #include "Tool.h" #include "ResourceManager.h" #include "MainCharacter.h" #include "Opponent.h" #include <string> #include <stdlib.h> const float GAME_SPEED = 12; const float OFFSET = 43; const float RENDER_BOX_SIZE = 100; float GAME_OPPONENT_COUNT = 20; const float GAME_CONSTANT ...
// // Created by michael on 26/9/20. // #include "denovo_discovery/discover_main.h" void setup_discover_subcommand(CLI::App& app) { auto opt = std::make_shared<DiscoverOptions>(); auto* discover_subcmd = app.add_subcommand("discover", "Quasi-map reads to an indexed PRG, infer the " "sequence o...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <ctime> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" using namespace std; // for convenience using json = nlohmann::json; // For converting b...
/* * Copyright (C) [2020] Futurewei Technologies, Inc. All rights reverved. * * OpenArkFE is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS...
#include "GapsRunner.h" #include "GapsResult.h" #include "GapsParameters.h" #include "GapsStatistics.h" #include "math/Random.h" #include "utils/Archive.h" #include "utils/GlobalConfig.h" #include "gibbs_sampler/AsynchronousGibbsSampler.h" #include "gibbs_sampler/SingleThreadedGibbsSampler.h" #include "gibbs_s...
/* * Copyright (c) 2004, Laminar Research. * * 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, ...
#include <ros/ros.h> // PCL specific includes #include <sensor_msgs/PointCloud2.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl/point_cloud.h> #include <pcl/filters/voxel_grid.h> // #include <opencv2/opencv.hpp> // #include <pcl/filters/passthrough.h> #include <iostream> #include <pcl/io/pcd_io.h> #includ...
#include "SldCSSDataManager.h" #include "SldMacros.h" #include "SldCompare.h" #include "SldCSSPropertyType.h" #include "SldDictionary.h" #include "SldIntFormatter.h" #include "SldMetadataTypes.h" #include "SldStringStore.h" #include "SldTools.h" #include "SldUtil.h" CSldCSSDataManager::CSldCSSDataManager(CSldDiction...
// Copyright 2012 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 ap...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // Mark this UKF instance as not initialized, initialization will be do...
/******************************************************************** * Memory kernel extractor *******************************************************************/ #include <iostream> #include <sstream> #include <string> #include <cstring> #include <fstream> #include <cmath> #include "../libs/const.h" #include "../...
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2014 RDK Management * * 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...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2014, Texas A&M University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
#include <stdio.h> #include <algorithm> #include <cmath> #include <libint2.h> extern "C" { #include "cints.h" } #define SWAP_AB 0x01 #define SWAP_CD 0x02 #define SWAP_AB_CD 0x04 #define MAXFAC 100 #define EPS 1.0E-17 static double *df = NULL; // Double factorial, filled by calc_f() double* init_array(uns...
#include "smtsampler.h" #include <cinttypes> #include <climits> #include <cstring> SMTSampler::SMTSampler(z3::context *_c, const std::string &_input, const std::string &_output_dir, const MeGA::SamplerConfig &config) : Sampler(_c, _input, _output_dir, config) { init...
#include "server.h" #include "../common/platform.h" #include <ws2tcpip.h> #include <mstcpip.h> #include <cstring> #include <bitset> #pragma warning (disable:6250) // VirtualFree, decommit without release namespace { LPFN_ACCEPTEX ptrAcceptEx = NULL; LPFN_GETACCEPTEXSOCKADDRS ptrGetAcceptExSockAddrs = NULL; ...
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "ntv2Reader.hpp" #include "ajastuff/system/systemtime.h" #include "ajastuff/system/process.h" #include "ntv2utils.h" #include "ntv2signalrouter.h" #include "libvideostitch/logging.hpp" #include "libvideostitch/parse.hpp" static const...
// // Created by stdcat on 3/4/21. // #include "AStar.h" void AStar::tracePoint(Node *cur) { visualization_msgs::Marker marker; marker.header.frame_id = "world"; marker.action = visualization_msgs::Marker::ADD; marker.type = visualization_msgs::Marker::CUBE; marker.ns = "AStar_trace"; marker.i...
//--------------------------------------------------------------------------- #include <cmath> #include <ctime> #include <cstdlib> #include <cstdio> #include <vector> #include <iomanip> #include <iostream> #include <fstream> #include <sstream> #include <string> #include "clipper.hpp" //-----------------...
// Navier-Stokes fluid simulation? Awesome. // // Based on <NAME>'s 2-dimensional fluid simulation: // // https://github.com/shiffman/CFD/blob/master/CFDash/CFDash.pde // https://github.com/shiffman/CFD/blob/master/CFDash/Fluid.pde // // which is based on Mike Ash's superb tutorial: // // https://mikeash.co...
#include "PhysicsScene.h" #include "Sphere.h" #include "Plane.h" #include "Box.h" #include "Spring.h" class Sphere; class Plane; class Box; class Spring; PhysicsScene::PhysicsScene() : m_timeStep(0.01f), m_gravity(glm::vec2 (0,0)) {} PhysicsScene::~PhysicsScene() { for (auto pActor : m_actors) { delete pActor; }...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2018 ArangoDB GmbH, Cologne, Germany /// /// 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...
#include <fstream> #include <boost/lexical_cast.hpp> #include "GazeTrackerHistogramFeatures.h" #include "Point.h" #include "mir.h" #include "Application.h" GazeTrackerHistogramFeatures::GazeTrackerHistogramFeatures() { // Initialize calibration sample accumulation variables _currentTargetSamples.create(cv::Size(MAX...
/* * Copyright (C) 2019-2021 LEIDOS. * * 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 applicable law or agreed to...
//////////////////////////////////////////////////////////////////////// // Component that implements a magnifying glass tool. It presents a // small zoomed-out portion of the same image. The window has to be // positioned in the way that the cursor is always in the middle of the // magnifying glass. Moving the c...
/* * Player - One Hell of a Robot Server * Copyright (C) 2006 <NAME> (<EMAIL>) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your optio...
#pragma once #include <bits/stdc++.h> using namespace std; // Piecewise-linear unbounded convex function with slope changing points stored in heaps // Supports pointwise addition of functions but not min-plus convolution // Source: https://github.com/saketh-are/algo-lib template <typename V> struct LinPoints { st...
/* * main.cpp * * Created on: 28 May 2016 * Author: <NAME> @ 3DUniversum */ #include <iostream> #include <boost/format.hpp> #include <pcl/point_types.h> #include <pcl/point_cloud.h> #include <pcl/features/integral_image_normal.h> #include <pcl/visualization/pcl_visualizer.h> #include <pcl/common/transforms.h...
#include "stdafx.h" #include "consolegraph.h" #include "input.h" #include "conio.h" #include "books.h" #include "function-standard.h" #include "windows.h" #include "cache.h" #include "menu.h" #include "readers.h" #include "library-management.h" #include "books.h" #include "borrowed-bill.h" int NumBookBorrowed(long co...
/*+-------------------------------------------------------------------------+ | MultiVehicle simulator (libmvsim) | | | | Copyright (C) 2014-2020 <NAME> | | Copyright (C) 2017 <N...
#include "PhysXParticle.h" #include "PhysXSystem.h" #include "PhysXScene.h" #include "ParticleManager.h" #include "PhysXControllerManager.h" #include "Player.h" #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #ifdef _WIN32 #include <Windows.h> #endif #include "nix\string\path.h" #ifdef __linux__ #include ...
#include <iostream> using namespace std; template <typename Tip> class Iterator; // Predefinisana klasa iterator template <typename Tip> template <typename nekiTip> class Lista { public: //Konstruktor bez parametara => postavlja trenutni element na prvo mjesto; Lista() {} //Destruktor; virtual ~Lista...
#include <ctype.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <cctype> #include <list> #include <map> #include <string> #include <iostream> #include <fstream> #include "respace_stl_ms.h" #define stricmp strcasecmp using namespace std; int debug = 1; void...
#include "NTtimescales.h" #include "write.h" #include "messages.h" #include "globalVariables.h" #include "adafFunctions.h" #include <flosses/nonThermalLosses.h> #include <flosses/lossesSyn.h> #include <flosses/lossesIC.h> #include <flosses/lossesBrem.h> #include <flosses/lossesHadronics.h> #include <flosses/lossesPhot...
#include <string> #include "ros/ros.h" #include "std_msgs/String.h" #include <sensor_msgs/JointState.h> #include <nav_core/recovery_behavior.h> #include <tf/transform_broadcaster.h> #include <tf/message_filter.h> #include <nav_msgs/MapMetaData.h> #include <nav_msgs/OccupancyGrid.h> #include <nav_msgs/Odometry.h> #incl...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
#include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <fstream> using namespace std; using namespace cv; Mat src; struct ellipse_data { ellipse_data(): x0(-1), y1(-1) {}; ellipse_data(int _x0, int _y0, double _a, double _b, double th); ellipse_data(in...
/* * <AMD 3BSD notice header> * * Copyright (c) 2006, 2007, 2008 Advanced Micro Devices, Inc. * * All rights reserved. * * This file is subject to the license found in the LICENSE.AMD file which * states the following in part: * * Redistribution and use in any form of this material and any product * thereof ...
/* Copyright (C) 2016 <NAME>. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * 0 A....
//Header for this file #include "modetrack.h" //C System-Headers #include <termios.h> /* POSIX terminal control definitions */ #include <sys/ioctl.h> #include <fcntl.h>//fopen(),fclose() #include <unistd.h>//read(), write() //C++ System headers #include <vector>//vector #include <string>//string #include <fstream>//is...
#pragma once #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <GL/gl.h> #include <stdio.h> #include <assert.h> #include "render-types.hpp" #include "vector.hpp" #include "map.hpp" #include "physics.hpp" void loadLibraries() { if (SDL_Init(SDL_INIT_VIDEO) < 0) { printf("SDL could not initialize...
// This file is part of snark, a generic and flexible library for robotics research // Copyright (c) 2011 The University of Sydney // 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. Redistr...
// Copyright 2019 The MediaPipe Authors. // // 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 applicable law or a...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/> * * This program is free software; you ca...
#include "main.h" #include "timer.h" // #include "ball.h" #include "player.h" #include "floor.h" #include "coin.h" #include "segmentdisplay.h" #include "firebeam.h" #include "boomerang.h" using namespace std; GLMatrices Matrices; GLuint programID; GLFWwindow *window; /************************** * Customizable fu...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
// Copyright (c) 2020 <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, distr...
#include "test.h" #include "framework/util.h" // create a 'pool' terrain void Test::CreatePool(float height,float length_down,float length_up,float width_down,float width_up) { Float lext1 = 0 - ((length_up - length_down)/2); // length extra from the coordinate below Float lext2 = 0 + ((length_up - length_down)/2)...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include "anpr.h" LicenseSymbolsArea::LicenseSymbolsArea(cv::Mat& plate, std::vector<mArea>& plateAreaSymbols) : plate(plate), plateAreaSymbols(plateAreaSymbols) {} Anpr::Anpr() : showInfo(false) { if(!cascadePlate.load("haarcascade_russian_plate_number.xml")) throw std::logic_error("haarcascade_r...
/* * Copyright (c) The Shogun Machine Learning Toolbox * Written (W) 2015 <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 (c) 2020, NVIDIA 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: # * Redistributions of...
/********************************************************************** * * mqmmain.cpp * * Copyright (c) 1996-2009 by * <NAME>, <NAME>, <NAME> and <NAME> * * initial MQM C code written between 1996-2002 by <NAME> * improved for the R-language by <NAME>, <NAME> and <NAME> * * Modified by <NAME> and <NAME> * ...
/*! * @file fileio.cpp * GOAL Low-Level File I/O and String Utilities * DONE! */ #include <cstring> #include <cstdio> #include "game/sce/sif_ee.h" #include "fileio.h" #include "kprint.h" #include "common/versions.h" #include "common/util/Assert.h" namespace { // buffer for file paths. This might be static char b...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2017 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include "CVK/CVK_Utils/CVK_ShaderUtils.h" #include "CVK/CVK_Utils/CVK_ConverterUtils.h" #include "KIRK/Common/SceneGraph.h" #include "KIRK/Utils/Window.h" #include "KIRK/Utils/ArgParser.h" #include "KIRK/Utils/jsonout.h" #include "KIRK/Utils/Gui/Gui.h" #include "KIRK/Utils/Gui/GuiScene.h" #include "KIRK/Utils/Gui/Gu...
#include "screen.h" #include "fontData.h" #include <iostream> Screen::Screen() { // Init SDL Video if(SDL_Init(SDL_INIT_VIDEO) != 0) { std::string errmsg = "SDL_Init error: " + std::string(SDL_GetError()); callError(errmsg); } // Init SDL IMG int flags = IMG_INIT_JPG | IMG_INIT_PNG; int inits = IMG_Init(...
/* Copyright (c) 2019, NVIDIA 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: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 <NAME>, Paris, France. // Copyright (c) 2009-2012 <NAME>, London, UK. // This file was modified by Oracle on 2020. // Modifications copyright (c) 2020, Oracle an...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h" #include "base/pickle.h" #include "base/strings/string16.h" #include "base/strings/st...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include <tool/shader.h> #include <tool/camera.h> #define STB_IMAGE_IMPLEMENTATION #include <tool/stb_image.h> #include <tool/gui.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> using namespace std; ...
/* * v4l2_encoder.cpp - a h264 encoder basing on v4l2 wrapper interface * * Copyright (C) 2011-2014 Intel Corporation * Author: <NAME><<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Fre...
#include <algorithm> #include <cmath> #include <complex> #include <stdexcept> #include <iostream> #include <tuple> #include <control/control.h> #include "robot_bicycle_parameters.h" #include "control_design_functions.h" #include "matlab_interface.h" MatlabInterface matlab; Eigen::IOFormat matlabfmt(Eigen::FullPreci...
/************************************************************************** * "jlp_gdev_curves_draw.cpp" * * Definition of the members of the JLP_GDev class * to draw curves * * JLP * Version 10/02/2017 **************************************************************************/ #include <stdio.h> #include <math.h> #inc...
#include "MatrixOperations.h" const float MatrixOperations::PI = 3.14159265358979; // Tested double MatrixOperations::dot_product(Coordinate& lhs, Coordinate& rhs) { // This function will calculate the dot product between two coordinates and return it Coordinate result; double dot_product = 0; ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/gtk/info_bubble_gtk.h" #include <gdk/gdkkeysyms.h> #include <vector> #include "base/basictypes.h" #include "base/logging...
/* 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, sublicense, and/or sell copies of t...
// GREG: // this monstrosity must be destroyed // they know not what they have done // continue at your own risk: #include <sstream> #include "../main.h" #include "level.h" #include "player.h" #include "item.h" #include "cameraController.h" #include "../../engine/update.h" #include "../../engine/physic...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include <fstream> #include <vector> #include <windows.h> #include <CL\cl.hpp> #include "linear_algebra.h" #include "camera.h" #include "geometry.h" //#include "user_interaction.h" using namespace std; using namespace cl; void framebufferSzeCallback(...
// Author: <NAME> // Copyright (c) 2022 #include "tatp_db.h" #include "unistd.h" #include "util/json_config.h" /* Only initialize here. The worker threads will populate. */ void TATP::LoadTable(node_id_t node_id, node_id_t num_server, MemStoreAllocParam* mem_store_alloc_para...
#include "PianoWidget.h" #include <AK/Queue.h> #include <LibDraw/GraphicsBitmap.h> #include <LibGUI/GPainter.h> #include <math.h> PianoWidget::PianoWidget() { memset(keys, 0, sizeof(keys)); m_front_buffer = new Sample[2048]; m_back_buffer = new Sample[2048]; set_font(Font::default_fixed_width_font());...
#include "GameServer.hpp" #include "Deck.hpp" #include "cards/Targetable.hpp" #include "cards/Playable.hpp" #include "cards/Equipped.hpp" #include "cards/PlayerModification.hpp" #include "cards/TurnBased.hpp" #include <cmath> #include <random> GameServer::User::User(WebSocket* ws) : ws(ws) {} GameServer::User::User(){}...
// this scene has a tank with two liquids, and a surface between the interface // of the two liquids #include <stdlib.h> #include <string.h> // include the required header files for the VTK classes we are using. #include "vtkActor.h" #include "vtkLight.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include...