repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
freedesktop/pvr-driver
src/psb_texstreaming.h
<reponame>freedesktop/pvr-driver /* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal i...
freedesktop/pvr-driver
fw/H263SlaveFirmwareVBR_bin.h
// This file was automatically generated from ../release/H263SlaveFirmwareVBR.dnl using dnl2c. extern unsigned long aui32H263VBR_SlaveMTXTOPAZFWText[]; extern unsigned long ui32H263VBR_SlaveMTXTOPAZFWTextSize; extern unsigned long aui32H263VBR_SlaveMTXTOPAZFWData[]; extern unsigned long ui32H263VBR_SlaveMTXTOPAZFWD...
freedesktop/pvr-driver
fw/H263MasterFirmwareCBR_bin.h
// This file was automatically generated from ../release/H263MasterFirmwareCBR.dnl using dnl2c. extern unsigned long aui32H263CBR_MasterMTXTOPAZFWText[]; extern unsigned long ui32H263CBR_MasterMTXTOPAZFWTextSize; extern unsigned long aui32H263CBR_MasterMTXTOPAZFWData[]; extern unsigned long ui32H263CBR_MasterMTXTOP...
freedesktop/pvr-driver
src/lnc_hostcode.c
<reponame>freedesktop/pvr-driver<filename>src/lnc_hostcode.c /* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (t...
freedesktop/pvr-driver
fw/H264SlaveFirmware_bin.h
// This file was automatically generated from ../release/H264SlaveFirmware.dnl using dnl2c. extern unsigned long aui32H264_SlaveMTXTOPAZFWText[]; extern unsigned long ui32H264_SlaveMTXTOPAZFWTextSize; extern unsigned long aui32H264_SlaveMTXTOPAZFWData[]; extern unsigned long ui32H264_SlaveMTXTOPAZFWDataSize; exter...
freedesktop/pvr-driver
src/ci_va.h
<gh_stars>0 /* Most of the codes are copied from V4L2 sample capture.c, see * Video for Linux Two API Specification * http://v4l2spec.bytesex.org/spec-single/v4l2.html#CAPTURE-EXAMPLE */ /* for buffer sharing between CI and VA */ #ifndef _CI_VA_H #define _CI_VA_H #include <stdio.h> #include <stdlib.h> #include <...
freedesktop/pvr-driver
src/lnc_H263ES.c
<gh_stars>0 /* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * 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 withou...
freedesktop/pvr-driver
fw/MPG4MasterFirmwareCBR_bin.c
<reponame>freedesktop/pvr-driver /* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions m...
freedesktop/pvr-driver
fw/MPG4SlaveFirmwareCBR_bin.c
<reponame>freedesktop/pvr-driver<filename>fw/MPG4SlaveFirmwareCBR_bin.c /* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following cond...
freedesktop/pvr-driver
src/psb_drv_video.c
<filename>src/psb_drv_video.c /* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * 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 t...
freedesktop/pvr-driver
fw/H264FirmwareVCM_bin.h
<gh_stars>0 // This file was automatically generated from ../release/H264FirmwareVCM.dnl using dnl2c. extern unsigned long aui32H264VCM_MTXTOPAZFWText[]; extern unsigned long ui32H264VCM_MTXTOPAZFWTextSize; extern unsigned long aui32H264VCM_MTXTOPAZFWData[]; extern unsigned long ui32H264VCM_MTXTOPAZFWDataSize; exte...
freedesktop/pvr-driver
fw/H264MasterFirmwareVBR_bin.h
// This file was automatically generated from ../release/H264MasterFirmwareVBR.dnl using dnl2c. extern unsigned long aui32H264VBR_MasterMTXTOPAZFWText[]; extern unsigned long ui32H264VBR_MasterMTXTOPAZFWTextSize; extern unsigned long aui32H264VBR_MasterMTXTOPAZFWData[]; extern unsigned long ui32H264VBR_MasterMTXTOP...
freedesktop/pvr-driver
src/pnw_rotate.c
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * * 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, ...
freedesktop/pvr-driver
fw/H264SlaveFirmwareCBR_bin.c
<filename>fw/H264SlaveFirmwareCBR_bin.c /* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistribu...
freedesktop/pvr-driver
fw/H263FirmwareCBR_bin.h
<reponame>freedesktop/pvr-driver // This file was automatically generated from ../release/H263FirmwareCBR.dnl using dnl2c. extern unsigned long aui32H263CBR_MTXTOPAZFWText[]; extern unsigned long ui32H263CBR_MTXTOPAZFWTextSize; extern unsigned long aui32H263CBR_MTXTOPAZFWData[]; extern unsigned long ui32H263CBR_MTXT...
freedesktop/pvr-driver
src/psb_surface.h
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * 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 restrictio...
freedesktop/pvr-driver
src/hwdefs/msvdx_vec_reg_io2.h
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * 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 restrictio...
freedesktop/pvr-driver
fw/MPG4MasterFirmware_bin.h
<reponame>freedesktop/pvr-driver<filename>fw/MPG4MasterFirmware_bin.h // This file was automatically generated from ../release/MPG4MasterFirmware.dnl using dnl2c. extern unsigned long aui32MPG4_MasterMTXTOPAZFWText[]; extern unsigned long ui32MPG4_MasterMTXTOPAZFWTextSize; extern unsigned long aui32MPG4_MasterMTXTO...
freedesktop/pvr-driver
fw/thread0_bin.c
<filename>fw/thread0_bin.c /* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must re...
freedesktop/pvr-driver
fw/H263SlaveFirmware_bin.h
<gh_stars>0 // This file was automatically generated from ../release/H263SlaveFirmware.dnl using dnl2c. extern unsigned long aui32H263_SlaveMTXTOPAZFWText[]; extern unsigned long ui32H263_SlaveMTXTOPAZFWTextSize; extern unsigned long aui32H263_SlaveMTXTOPAZFWData[]; extern unsigned long ui32H263_SlaveMTXTOPAZFWData...
freedesktop/pvr-driver
fw/H264MasterFirmware_bin.c
/* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must reproduce the above copyright...
freedesktop/pvr-driver
fw/msvdx_bin.c
<reponame>freedesktop/pvr-driver<filename>fw/msvdx_bin.c /* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the ...
freedesktop/pvr-driver
src/lnc_ospm.h
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * * 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, ...
freedesktop/pvr-driver
src/android/psb_android_glue.h
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * * 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, ...
freedesktop/pvr-driver
src/x11/psb_coverlay.c
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * * 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, ...
freedesktop/pvr-driver
fw/MPG4Firmware_bin.h
// This file was automatically generated from ../release/MPG4Firmware.dnl using dnl2c. extern unsigned long aui32MPG4_MTXTOPAZFWText[]; extern unsigned long ui32MPG4_MTXTOPAZFWTextSize; extern unsigned long aui32MPG4_MTXTOPAZFWData[]; extern unsigned long ui32MPG4_MTXTOPAZFWDataSize; extern unsigned long ui32MPG4_M...
freedesktop/pvr-driver
fw/H264SlaveFirmwareVCM_bin.c
/* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must reproduce the above copyright...
freedesktop/pvr-driver
fw/H264MasterFirmwareVCM_bin.c
<filename>fw/H264MasterFirmwareVCM_bin.c /* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistrib...
freedesktop/pvr-driver
src/psb_buffer.h
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * 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 restrictio...
freedesktop/pvr-driver
fw/H264MasterFirmwareVBR_bin.c
/* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must reproduce the above copyright...
freedesktop/pvr-driver
fw/H263MasterFirmwareVBR_bin.h
// This file was automatically generated from ../release/H263MasterFirmwareVBR.dnl using dnl2c. extern unsigned long aui32H263VBR_MasterMTXTOPAZFWText[]; extern unsigned long ui32H263VBR_MasterMTXTOPAZFWTextSize; extern unsigned long aui32H263VBR_MasterMTXTOPAZFWData[]; extern unsigned long ui32H263VBR_MasterMTXTOP...
freedesktop/pvr-driver
fw/H264MasterFirmwareCBR_bin.c
/* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must reproduce the above copyright...
freedesktop/pvr-driver
src/lnc_ospm.c
<reponame>freedesktop/pvr-driver<filename>src/lnc_ospm.c /* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * * 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 restric...
freedesktop/pvr-driver
fw/H264FirmwareCBR_bin.h
// This file was automatically generated from ../release/H264FirmwareCBR.dnl using dnl2c. extern unsigned long aui32H264CBR_MTXTOPAZFWText[]; extern unsigned long ui32H264CBR_MTXTOPAZFWTextSize; extern unsigned long aui32H264CBR_MTXTOPAZFWData[]; extern unsigned long ui32H264CBR_MTXTOPAZFWDataSize; extern unsigned ...
freedesktop/pvr-driver
fw/H263MasterFirmwareVBR_bin.c
/* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must reproduce the above copyright...
freedesktop/pvr-driver
fw/H264SlaveFirmwareVBR_bin.c
/* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must reproduce the above copyright...
freedesktop/pvr-driver
src/x11/psb_x11.c
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * * 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, ...
freedesktop/pvr-driver
fw/MPG4SlaveFirmware_bin.c
<reponame>freedesktop/pvr-driver<filename>fw/MPG4SlaveFirmware_bin.c /* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditi...
freedesktop/pvr-driver
fw/MPG4FirmwareVBR_bin.c
<reponame>freedesktop/pvr-driver /* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions m...
freedesktop/pvr-driver
fw/MPG4MasterFirmwareVBR_bin.c
/* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must reproduce the above copyright...
freedesktop/pvr-driver
fw/MPG4SlaveFirmwareVBR_bin.h
<gh_stars>0 // This file was automatically generated from ../release/MPG4SlaveFirmwareVBR.dnl using dnl2c. extern unsigned long aui32MPG4VBR_SlaveMTXTOPAZFWText[]; extern unsigned long ui32MPG4VBR_SlaveMTXTOPAZFWTextSize; extern unsigned long aui32MPG4VBR_SlaveMTXTOPAZFWData[]; extern unsigned long ui32MPG4VBR_Slav...
freedesktop/pvr-driver
fw/H263FirmwareVBR_bin.h
// This file was automatically generated from ../release/H263FirmwareVBR.dnl using dnl2c. extern unsigned long aui32H263VBR_MTXTOPAZFWText[]; extern unsigned long ui32H263VBR_MTXTOPAZFWTextSize; extern unsigned long aui32H263VBR_MTXTOPAZFWData[]; extern unsigned long ui32H263VBR_MTXTOPAZFWDataSize; extern unsigned ...
freedesktop/pvr-driver
fw/JPEGMasterFirmware_bin.h
<filename>fw/JPEGMasterFirmware_bin.h // This file was automatically generated from ../release/JPEGMasterFirmware.dnl using dnl2c. extern unsigned long aui32JPEG_MasterMTXTOPAZFWText[]; extern unsigned long ui32JPEG_MasterMTXTOPAZFWTextSize; extern unsigned long aui32JPEG_MasterMTXTOPAZFWData[]; extern unsigned lon...
freedesktop/pvr-driver
fw/H263Firmware_bin.h
<gh_stars>0 // This file was automatically generated from ../release/H263Firmware.dnl using dnl2c. extern unsigned long aui32H263_MTXTOPAZFWText[]; extern unsigned long ui32H263_MTXTOPAZFWTextSize; extern unsigned long aui32H263_MTXTOPAZFWData[]; extern unsigned long ui32H263_MTXTOPAZFWDataSize; extern unsigned lon...
freedesktop/pvr-driver
fw/thread0_ss_bin.c
/* * Copyright (c) 2010 Intel Corporation. All rights reserved. * Copyright (c) Imagination Technologies Limited, UK * Redistribution. Redistribution and use in binary form, without modification, * are permitted provided that the following conditions are met: * * Redistributions must reproduce the above copyright...
freedesktop/pvr-driver
src/pnw_MPEG4ES.c
<reponame>freedesktop/pvr-driver /* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal i...
freedesktop/pvr-driver
fw/MPG4MasterFirmwareCBR_bin.h
<reponame>freedesktop/pvr-driver // This file was automatically generated from ../release/MPG4MasterFirmwareCBR.dnl using dnl2c. extern unsigned long aui32MPG4CBR_MasterMTXTOPAZFWText[]; extern unsigned long ui32MPG4CBR_MasterMTXTOPAZFWTextSize; extern unsigned long aui32MPG4CBR_MasterMTXTOPAZFWData[]; extern unsigne...
bakkot/jsparagus
crates/emitter/src/copy/StencilEnums.h
<reponame>bakkot/jsparagus /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set ts=8 sts=2 et sw=2 tw=80: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http:...
Dugy/lightforums
atomic_unordered_map.h
<reponame>Dugy/lightforums<filename>atomic_unordered_map.h #ifndef ATOMIC_UNORDERED_MAP #define ATOMIC_UNORDERED_MAP #include <memory> #include <utility> #include <functional> #include <atomic> #include <chrono> #include <thread> #include <climits> #include <iostream> template <typename K, typename V> class atomic_un...
Dugy/lightforums
mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <Wt/WApplication> #include <Wt/WContainerWidget> #include "post.h" class root { public: static inline root& get() { static root holder; return holder; } std::shared_ptr<lightforums::post> getRootPost(); void setRootPost(std::shared_ptr<lightforums::post> set...
Dugy/lightforums
userlist.h
<gh_stars>0 #ifndef USERLIST_H #define USERLIST_H #include <string> #include <vector> #include <memory> #include "atomic_unordered_map.h" #include "user.h" #include "defines.h" namespace lightforums { class post; class userList { public: static inline userList& get() { static userList holder; return hol...
Dugy/lightforums
defines.h
#ifndef DEFINES #define DEFINES #include <string> #include <memory> #include <vector> #include <random> #include <atomic> #define ALL_PATH_PREFIX "?_=" #define POST_PATH_PREFIX "post" #define USER_PATH_PREFIX "user" #define SETTINGS_PATH "settings" #define TRANSLATION_PATH "translation" #define RANDOM_TEXT_LENGTH 5 ...
Dugy/lightforums
settings.h
#ifndef SETTINGS_H #define SETTINGS_H #include "defines.h" #include <vector> #include <memory> #include "translation.h" namespace lightforums { struct Settings { static inline Settings& get() { static Settings holder; return holder; } void setup(rapidxml::xml_node<char>* from = nullptr); rapidxml::x...
Dugy/lightforums
atomic_vector.h
<filename>atomic_vector.h<gh_stars>0 #ifndef ATOMIC_VECTOR #define ATOMIC_VECTOR #include <memory> #include <utility> #include <functional> #include <atomic> #include <chrono> #include <thread> #include <climits> template<typename V> class atomic_vector { // A vector that can be simultaneously accessed from many thr...
Dugy/lightforums
translation.h
#ifndef TRANSLATION_H #define TRANSLATION_H #include <string> #include <vector> #include <memory> #include "defines.h" namespace lightforums { class tr { public: enum translatable : unsigned int { SET_GUEST_POSTING, SET_VIEW_DEPTH, SET_CAN_EDIT_OWN, SET_CAN_DELETE_OWN, SET_CAN_EDIT_OTHER, SET_AL...
Dugy/lightforums
user.h
<reponame>Dugy/lightforums #ifndef USER_H #define USER_H #include <string> #include <unordered_map> #include <mutex> #include <condition_variable> #include <memory> #include "rapidxml.hpp" #include "defines.h" #include "atomic_unordered_map.h" #include "post.h" namespace lightforums { class user { public: user(...
Dugy/lightforums
post.h
<filename>post.h #ifndef POST_H #define POST_H #include <string> #include <atomic> #include <vector> #include <memory> #include "defines.h" #include "atomic_unordered_map.h" #include "translation.h" namespace lightforums { class post; class postPath { unsigned int size_; unsigned char* path_; public: postP...
Dugy/lightforums
atomic_queue.h
#ifndef ATOMIC_QUEUE #define ATOMIC_QUEUE #include <memory> #include <utility> #include <functional> #include <atomic> #include <chrono> #include <thread> #include <climits> template<typename V> class atomic_queue { // A queue that can be simultaneously accessed from many threads... template <typename T> struct se...
noo-0ne/sorting_algorithms
quicksort.detail.h
<reponame>noo-0ne/sorting_algorithms // Copyright (c) 2013 <NAME> // https://github.com/cdmh/sorting_algorithms #pragma once namespace cdmh { namespace detail { template<typename T> inline T median(T const &t1, T const &t2, T const &t3) { if (t1 < t2) { if (t2 < t3) retur...
noo-0ne/sorting_algorithms
insertion_sort.h
<gh_stars>10-100 // Copyright (c) 2013 <NAME> // https://github.com/cdmh/sorting_algorithms #include "sort.h" namespace cdmh { // Insertion Sort // Worst case performance О(n2) comparisons, swaps // Best case performance O(n) comparisons, O(1) swaps // Average case performa...
noo-0ne/sorting_algorithms
merge_sort.h
<gh_stars>10-100 // Copyright (c) 2013 <NAME> // https://github.com/cdmh/sorting_algorithms #include "sort.h" #include <cassert> #include <vector> #include <algorithm> // inplace_merge namespace cdmh { // Merge Sort // Worst case performance O(n log n) // Best case performance O(n lo...
noo-0ne/sorting_algorithms
heap_sort.h
<filename>heap_sort.h // Copyright (c) 2013 <NAME> // https://github.com/cdmh/sorting_algorithms #pragma once #include "sort.h" #include <algorithm> // make_heap namespace cdmh { // Heap Sort // Worst case performance O(n log n) // Best case performance Omega(n), O(n log n) // ...
Dot-Extended-Devices/android_device_samsung_on7xelte
init/init_sec.h
<reponame>Dot-Extended-Devices/android_device_samsung_on7xelte<gh_stars>1-10 #ifndef INIT_SEC_H #define INIT_SEC_H #include <string.h> #define TOTAL_VARIANTS 6 //Total number of variants typedef struct { std::string model; std::string codename; } variant; static const variant G610F_model = { .model = "S...
raestio/Tower_attack
src/game/states/GameOverState.h
#ifndef __game_over_state_h__ #define __game_over_state_h__ #include <SDL2/SDL.h> #include "State.h" #include <string> #include <memory> #include "../tools/Label.h" class GameStateManager; /** Game over state. * Displays the score of the player and the game result. By clicking on the screen the game starts again. ...
raestio/Tower_attack
src/game/tools/Timer.h
<reponame>raestio/Tower_attack<gh_stars>0 #ifndef __timer_h__ #define __timer_h__ #include <iostream> /** Timer class used for countdown function and for capturing time. */ class Timer{ public: /** Initialize variables. */ Timer(); /** Start timer. */ void start(); /** * Start countdown. * \param durati...
raestio/Tower_attack
src/game/game_objects/abilities/ThreeAtTime.h
<reponame>raestio/Tower_attack<gh_stars>0 #ifndef __three_at_time_h__ #define __three_at_time_h__ #include "Ability.h" #include "../../tools/Timer.h" #include <iostream> /** Three at a time shot with damage. */ class ThreeAtTime : public Ability { public: ThreeAtTime(double shootingSpeed, int damage); virtual voi...
raestio/Tower_attack
src/game/game_objects/Attacker.h
#ifndef __attacker_h__ #define __attacker_h__ #include <SDL2/SDL.h> #include <vector> #include <string> #include "GameObject.h" class Ability; /** Attacker game object class */ class Attacker : public GameObject { public: /** Initialize member attributes */ Attacker(); /**Constructor initializes member at...
raestio/Tower_attack
src/game/states/State.h
<filename>src/game/states/State.h #ifndef __state_h__ #define __state_h__ #include <SDL2/SDL.h> class GameStateManager; /** Abstract class represents state of the game. */ class State { public: /** Set <b>gameStateManager</b> */ State(GameStateManager * gameStateManager); /** Virtual destructor. */ virtual ...
raestio/Tower_attack
src/game/tools/GameManager.h
<filename>src/game/tools/GameManager.h #ifndef __game_manager_h__ #define __game_manager_h__ #include "Timer.h" #include <memory> #include <vector> #include <string> class Map; class Attacker; class Tower; class GameObject; /** * Class saves and loads the game from file. * \throw std::string description of error wh...
raestio/Tower_attack
src/game/states/ChoiceStartState.h
#ifndef __choice_start_state_h__ #define __choice_start_state_h__ #include <SDL2/SDL.h> #include <iostream> #include <memory> #include "State.h" #include "../tools/GameObjectsLoader.h" #include "../game_objects/GameObject.h" #include "../tools/Label.h" #include <string> class GameStateManager; class Map; /** State ...
raestio/Tower_attack
src/game/TowerAttack.h
<gh_stars>0 #ifndef __tower_attack_h__ #define __tower_attack_h__ #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include "states/GameStateManager.h" /** \mainpage TOWER ATTACK game * * The goal of the game is to reach the end of the map with attackers. By clicking on towers the attackers start shooting (if are in...
raestio/Tower_attack
src/game/game_objects/Tower.h
<reponame>raestio/Tower_attack #ifndef __tower_h__ #define __tower_h__ #include <SDL2/SDL.h> #include <vector> #include <string> #include "GameObject.h" class Ability; /** Tower game object class */ class Tower : public GameObject { public: /** Initialize member attributes. */ Tower(); /** Constructor init...
raestio/Tower_attack
src/game/map/Map.h
<reponame>raestio/Tower_attack #ifndef __map_h__ #define __map_h__ #include <iostream> #include <SDL2/SDL.h> #include <vector> #include <memory> #include <string> #include <fstream> #include "Tile.h" #include "../TowerAttack.h" #include <memory> #include <vector> class Tower; /** Class that represents the map of the...
raestio/Tower_attack
src/game/game_objects/GameObject.h
#ifndef __game_object_h__ #define __game_object_h__ #include <SDL2/SDL.h> #include "../map/Tile.h" #include <string> #include <iostream> /** Abstract class that represents game object. */ class GameObject { public: /** Implicit constuctor initialize member attributes. */ GameObject(); /**Constructor initia...
raestio/Tower_attack
src/game/states/GameStateManager.h
#ifndef __game_state_manager_h__ #define __game_state_manager_h__ #include <stack> #include <memory> #include <SDL2/SDL.h> class State; /** * Class manages the game states. * It is represented by stack. */ class GameStateManager { public: /** Push the <b>state</b> on the top. */ void push(const std::shared_...
raestio/Tower_attack
src/game/states/MenuState.h
<gh_stars>0 #ifndef __menu_state_h__ #define __menu_state_h__ #include <SDL2/SDL.h> #include <memory> #include <vector> #include "State.h" #include "../tools/Label.h" class GameStateManager; /** Class displays the menu of the game. */ class MenuState : public State { public: /** * Initialize member attributes...
raestio/Tower_attack
src/game/tools/PathFinder.h
#ifndef __path_finder_h__ #define __path_finder_h__ #include <memory> #include <vector> #include <list> #include <map> class Map; class Tile; /** Class for searching the shortest path using A* algorithm. */ class PathFinder { public: /** * Create map of <b>Node</b>s from the original <b>map</b> in order to ex...
raestio/Tower_attack
src/game/game_objects/abilities/BasicShot.h
<filename>src/game/game_objects/abilities/BasicShot.h<gh_stars>0 #ifndef __basic_shot_h__ #define __basic_shot_h__ #include "Ability.h" #include <iostream> /** Basic shot with damage. */ class BasicShot : public Ability { public: BasicShot(double shootingSpeed, int damage); virtual void handleCollision() overri...
raestio/Tower_attack
src/game/tools/AttackersSelector.h
<reponame>raestio/Tower_attack #ifndef __attackers_selector_h__ #define __attackers_selector_h__ #include <SDL2/SDL.h> #include <memory> #include <vector> class Label; class Attacker; /** Class which displays set of attackers to screen and allows to choose some of them for the game. */ class AttackersSelector { pu...
raestio/Tower_attack
src/game/game_objects/Projectile.h
<reponame>raestio/Tower_attack #ifndef __projectile_h__ #define __projectile_h__ #include <memory> #include "GameObject.h" /** Projectile game object class */ class Projectile : public GameObject { public: /** * Initialize member attributes. * \param startX Coordinate <b>X</b> where the projectile starts. ...
raestio/Tower_attack
src/game/states/PlayState.h
<filename>src/game/states/PlayState.h #ifndef __play_state_h__ #define __play_state_h__ #include <SDL2/SDL.h> #include <iostream> #include <memory> #include <vector> #include "../tools/PathFinder.h" #include "State.h" #include "../tools/Timer.h" class Tile; class GameObject; class Attacker; class Tower; class GameSta...
raestio/Tower_attack
src/game/map/WallTile.h
#ifndef __wall_tile_h__ #define __wall_tile_h__ #include "Tile.h" /** Tile which is not walkable and can not contain Tower object. */ class WallTile : public Tile { public: WallTile(int posX, int posY, const int ID); static const int RED = 0x70; /**< Red channel of the tile color. */ static const int GREEN = 0x...
raestio/Tower_attack
src/game/tools/TowersDeployment.h
<filename>src/game/tools/TowersDeployment.h #ifndef __towers_deployment_h__ #define __towers_deployment_h__ #include <memory> #include <vector> class Map; class Tower; /** Class that deploys towers on the map. */ class TowersDeployment { public: /** Creating instances is forbidden. */ TowersDeployment() = dele...
raestio/Tower_attack
src/game/map/Tile.h
#ifndef __tile_h__ #define __tile_h__ #include <SDL2/SDL.h> #include <memory> class Tower; /** * Class that represents the one tile of the map. * \throw std::string if the <b>getTower()</b> method is called from incorrect Tile. Check the subclasses for details. */ class Tile { public: /** * Initialize memb...
raestio/Tower_attack
src/game/map/FreeTile.h
<reponame>raestio/Tower_attack #ifndef __free_tile_h__ #define __free_tile_h__ #include <memory> #include "Tile.h" class Tower; /** Tile which is walkable and can contain Tower object. */ class FreeTile : public Tile { public: FreeTile(int posX, int posY, const int ID); virtual bool isWalkable() const override; ...
raestio/Tower_attack
src/game/map/StartTile.h
#ifndef __start_tile_h__ #define __start_tile_h__ #include "Tile.h" /** Tile which is walkable and can not contain Tower object. It is the starting tile of the map. */ class StartTile : public Tile { public: StartTile(int posX, int posY, const int ID); virtual bool isWalkable() const override; virtual bool isSta...
raestio/Tower_attack
src/game/map/FinishTile.h
<gh_stars>0 #ifndef __finish_tile_h__ #define __finish_tile_h__ #include "Tile.h" /** Tile which is walkable and can not contain Tower object. It is the finish tile of the map. */ class FinishTile : public Tile { public: FinishTile(int posX, int posY, const int ID); virtual bool isWalkable() const override; stat...
raestio/Tower_attack
src/game/states/ChoiceAttackersState.h
#ifndef __choice_attackers_state_h__ #define __choice_attackers_state_h__ #include <SDL2/SDL.h> #include <iostream> #include <memory> #include <vector> #include "State.h" #include "../game_objects/GameObject.h" #include "../tools/AttackersSelector.h" #include "../tools/Label.h" class GameStateManager; class Map; cla...
raestio/Tower_attack
src/game/tools/Label.h
<filename>src/game/tools/Label.h #ifndef __label_h__ #define __label_h__ #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <string> /** * Basic text label class. * \throw std::string If <b>FONT_FILE_PATH</b> does not exist or if the TTF file is corrupted. */ class Label { public: /** * Create text lab...
raestio/Tower_attack
src/game/tools/GameObjectsLoader.h
<filename>src/game/tools/GameObjectsLoader.h #ifndef __game_objects_loader_h__ #define __game_objects_loader_h__ #include <vector> #include <memory> #include <string> class Ability; class Tower; class GameObject; class Attacker; /** * Class that loads <b>Attacker</b>s and <b>Tower</b>s from their definition files. ...
raestio/Tower_attack
src/game/game_objects/abilities/Freeze.h
#ifndef __freeze_h__ #define __freeze_h__ #include "Ability.h" /** Shot that freezes game object. */ class Freeze : public Ability { public: Freeze(double shootingSpeed); virtual void handleCollision() override; virtual Freeze * clone() const; static constexpr double DURATION = 3.0; /**< Freeze time duration. *...
raestio/Tower_attack
src/game/game_objects/abilities/Ability.h
#ifndef __ability_h__ #define __ability_h__ #include <SDL2/SDL.h> #include <memory> #include <vector> #include <SDL2/SDL.h> #include "../Projectile.h" #include <iostream> class GameObject; /** * Abstract class that represents the ability of the game objects. * Manages the behaviour between projectiles and game obj...
pmoura/yap
os/getw.h
#define utf_cont(ch) (((ch) & 0xc0) == 0x80) static int post_process_f_weof(StreamDesc *st) { if (ferror(st->file)) { clearerr(st->file); return 1; } else { return post_process_weof(st); } } /// compose a wide char from a sequence of getchars /// this is a slow lane routine, called if no specia...
pmoura/yap
library/matrix/matrix.c
/************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ****************************...
pmoura/yap
H/YapHandles.h
/************************************************************************* * * * YAP Prolog %W% %G% * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ******************************************...
pmoura/yap
os/iopreds.c
<gh_stars>10-100 /************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ***********...
pmoura/yap
C/yap-args.c
<gh_stars>10-100 /************************************************************************* * * * Yap Prolog * * * * Yap Prolog Was Developed At Nccup - Universidade Do Porto * * * * Copyright L.Damas, V.S.Costa And Universidade Do Porto 1985-1997 * * * ***...
pmoura/yap
C/copy.c
<reponame>pmoura/yap /************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ***************...
pmoura/yap
fmem.c
<reponame>pmoura/yap<filename>fmem.c bYapD * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ************************************************************...
pmoura/yap
library/system/sys.c
/************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ********************...