repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
deemsterTom/mmx-node
src/ProofOfTime.cpp
/* * ProofOfTime.cpp * * Created on: Nov 30, 2021 * Author: mad */ #include <mmx/ProofOfTime.hxx> #include <mmx/write_bytes.h> namespace mmx { mmx::hash_t ProofOfTime::calc_hash() const { std::vector<uint8_t> buffer; vnx::VectorOutputStream stream(&buffer); vnx::OutputBuffer out(&stream); buffer.res...
deemsterTom/mmx-node
include/mmx/bls_signature_t.hpp
/* * bls_bls_signature_t.hpp * * Created on: Nov 30, 2021 * Author: mad */ #ifndef INCLUDE_MMX_BLS_bls_signature_t_HPP_ #define INCLUDE_MMX_BLS_bls_signature_t_HPP_ #include <mmx/hash_t.hpp> #include <mmx/skey_t.hpp> #include <mmx/bls_pubkey_t.hpp> namespace mmx { struct bls_signature_t : bytes_t<96> { ...
deemsterTom/mmx-node
include/mmx/utxo_t.hpp
<gh_stars>1-10 /* * utxo_t.hpp * * Created on: Dec 16, 2021 * Author: mad */ #ifndef INCLUDE_MMX_UTXO_T_HPP_ #define INCLUDE_MMX_UTXO_T_HPP_ #include <mmx/utxo_t.hxx> namespace mmx { inline utxo_t utxo_t::create_ex(const tx_out_t& out, const uint32_t& height) { utxo_t utxo; utxo.tx_out_t::operator=(ou...
deemsterTom/mmx-node
src/Operation.cpp
<gh_stars>1-10 /* * Operation.cpp * * Created on: Nov 27, 2021 * Author: mad */ #include <mmx/Operation.hxx> namespace mmx { hash_t Operation::calc_hash() const { return hash_t(); } } // mmx
deemsterTom/mmx-node
include/mmx/utxo_entry_t.hpp
/* * utxo_entry_t.hpp * * Created on: Dec 26, 2021 * Author: mad */ #ifndef INCLUDE_MMX_UTXO_ENTRY_T_HPP_ #define INCLUDE_MMX_UTXO_ENTRY_T_HPP_ #include <mmx/utxo_entry_t.hxx> namespace mmx { inline utxo_entry_t utxo_entry_t::create_ex(const txio_key_t& key, const utxo_t& output) { utxo_entry_t res; r...
deemsterTom/mmx-node
generated/include/mmx/HarvesterClient.hxx
// AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_Harvester_CLIENT_HXX_ #define INCLUDE_mmx_Harvester_CLIENT_HXX_ #include <vnx/Client.h> #include <mmx/Challenge.hxx> #include <mmx/FarmInfo.hxx> #include <vnx/Module.h> #include <vnx/TopicPtr.hpp> namespace mmx { class HarvesterClient : public vnx::Client { p...
deemsterTom/mmx-node
generated/src/FarmerAsyncClient.cpp
<reponame>deemsterTom/mmx-node // AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/FarmerAsyncClient.hxx> #include <mmx/BlockHeader.hxx> #include <mmx/FarmInfo.hxx> #include <mmx/Farmer_get_farm_info.hxx> #include <mmx/Farmer_get_farm_info_return.hxx> #include <mmx/Farmer_get_mac_addr.hxx> #in...
deemsterTom/mmx-node
generated/src/WalletAsyncClient.cpp
<reponame>deemsterTom/mmx-node<gh_stars>0 // AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/WalletAsyncClient.hxx> #include <mmx/FarmerKeys.hxx> #include <mmx/Wallet_get_address.hxx> #include <mmx/Wallet_get_address_return.hxx> #include <mmx/Wallet_get_all_addresses.hxx> #include <mmx/Wallet...
deemsterTom/mmx-node
generated/wallet/include/mmx/wallet/package.hxx
<gh_stars>100-1000 // AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_wallet_PACKAGE_HXX_ #define INCLUDE_mmx_wallet_PACKAGE_HXX_ #include <vnx/Type.h> #include <mmx/package.hxx> namespace mmx { namespace wallet { struct tx_entry_t; struct tx_type_e; extern const vnx::TypeCode* const vnx_native_type_code_t...
deemsterTom/mmx-node
generated/include/mmx/WalletBase.hxx
<filename>generated/include/mmx/WalletBase.hxx // AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_WalletBase_HXX_ #define INCLUDE_mmx_WalletBase_HXX_ #include <mmx/package.hxx> #include <mmx/FarmerKeys.hxx> #include <mmx/addr_t.hpp> #include <mmx/hash_t.hpp> #include <mmx/stxo_entry_t.hxx> #include <mmx/tx_entry...
deemsterTom/mmx-node
generated/include/mmx/package.hxx
<gh_stars>0 // AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_PACKAGE_HXX_ #define INCLUDE_mmx_PACKAGE_HXX_ #include <vnx/Type.h> #include <vnx/package.hxx> #include <vnx/addons/package.hxx> namespace mmx { class Block; class BlockHeader; class ChainParams; class Challenge; class Contract; class FarmInfo; ...
deemsterTom/mmx-node
generated/src/peer_info_t.cpp
<filename>generated/src/peer_info_t.cpp // AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/peer_info_t.hxx> #include <mmx/node_type_e.hxx> #include <vnx/vnx.h> namespace mmx { const vnx::Hash64 peer_info_t::VNX_TYPE_HASH(0xce0ff32e89625afbull); const vnx::Hash64 peer_info_t::VNX_CODE_HAS...
deemsterTom/mmx-node
include/mmx/pubkey_t.hpp
<reponame>deemsterTom/mmx-node<gh_stars>1-10 /* * pubkey_t.hpp * * Created on: Nov 25, 2021 * Author: mad */ #ifndef INCLUDE_MMX_PUBKEY_T_HPP_ #define INCLUDE_MMX_PUBKEY_T_HPP_ #include <mmx/hash_t.hpp> #include <mmx/skey_t.hpp> #include <mmx/secp256k1.hpp> namespace mmx { struct pubkey_t : bytes_t<33> ...
deemsterTom/mmx-node
generated/operations/src/package.cpp
<filename>generated/operations/src/package.cpp // AUTO GENERATED by vnxcppcodegen #include <mmx/operations/Deploy.hxx> #include <mmx/operations/Mint.hxx> #include <mmx/operations/package.hxx> #include <vnx/vnx.h> namespace vnx { void type<::mmx::operations::Deploy>::create_dynamic_code(std::vector<uint16_t>& cod...
deemsterTom/mmx-node
src/mmx.cpp
<gh_stars>0 /* * mmx.cpp * * Created on: Dec 21, 2021 * Author: mad */ #include <mmx/NodeClient.hxx> #include <mmx/RouterClient.hxx> #include <mmx/WalletClient.hxx> #include <mmx/FarmerClient.hxx> #include <mmx/HarvesterClient.hxx> #include <mmx/KeyFile.hxx> #include <mmx/secp256k1.hpp> #include <mmx/hash_t...
deemsterTom/mmx-node
generated/wallet/src/package.cpp
<filename>generated/wallet/src/package.cpp // AUTO GENERATED by vnxcppcodegen #include <mmx/wallet/tx_entry_t.hxx> #include <mmx/wallet/tx_type_e.hxx> #include <mmx/wallet/package.hxx> #include <vnx/vnx.h> namespace vnx { void type<::mmx::wallet::tx_entry_t>::create_dynamic_code(std::vector<uint16_t>& code) { c...
deemsterTom/mmx-node
generated/operations/include/mmx/operations/package.hxx
// AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_operations_PACKAGE_HXX_ #define INCLUDE_mmx_operations_PACKAGE_HXX_ #include <vnx/Type.h> #include <mmx/package.hxx> #include <vnx/package.hxx> namespace mmx { namespace operations { class Deploy; class Mint; extern const vnx::TypeCode* const vnx_native_ty...
deemsterTom/mmx-node
generated/src/FarmerKeys.cpp
<gh_stars>1-10 // AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/FarmerKeys.hxx> #include <mmx/bls_pubkey_t.hpp> #include <mmx/skey_t.hpp> #include <vnx/Value.h> #include <vnx/vnx.h> namespace mmx { const vnx::Hash64 FarmerKeys::VNX_TYPE_HASH(0x9942f861520098b3ull); const vnx::Hash64 Fa...
deemsterTom/mmx-node
generated/contract/include/mmx/contract/compare_e.hxx
// AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_contract_compare_e_HXX_ #define INCLUDE_mmx_contract_compare_e_HXX_ #include <vnx/Type.h> #include <mmx/contract/package.hxx> namespace mmx { namespace contract { struct compare_e { enum enum_t : uint32_t { EQUAL = 3913649559l, GREATER = 4126259227l, ...
deemsterTom/mmx-node
include/mmx/skey_t.hpp
<gh_stars>1-10 /* * skey_t.hpp * * Created on: Nov 25, 2021 * Author: mad */ #ifndef INCLUDE_MMX_SKEY_T_HPP_ #define INCLUDE_MMX_SKEY_T_HPP_ #include <mmx/bytes_t.hpp> #include <bls.hpp> namespace mmx { struct skey_t : bytes_t<32> { typedef bytes_t<32> super_t; skey_t() = default; skey_t(const ha...
deemsterTom/mmx-node
src/secp256k1.cpp
/* * secp256k1.cpp * * Created on: Nov 28, 2021 * Author: mad */ #include <mmx/secp256k1.hpp> namespace mmx { const secp256k1_context* g_secp256k1 = nullptr; static secp256k1_context* g_secp256k1_priv = nullptr; void secp256k1_init() { g_secp256k1_priv = secp256k1_context_create(SECP256K1_CONTEXT_SIG...
deemsterTom/mmx-node
include/mmx/stxo_entry_t.hpp
<gh_stars>1-10 /* * stxo_entry_t.hpp * * Created on: Dec 26, 2021 * Author: mad */ #ifndef INCLUDE_MMX_STXO_ENTRY_T_HPP_ #define INCLUDE_MMX_STXO_ENTRY_T_HPP_ #include <mmx/stxo_entry_t.hxx> namespace mmx { inline stxo_entry_t stxo_entry_t::create_ex(const txio_key_t& key, const utxo_t& output, const tx...
deemsterTom/mmx-node
src/tx_bench.cpp
<reponame>deemsterTom/mmx-node<filename>src/tx_bench.cpp /* * tx_bench.cpp * * Created on: Dec 30, 2021 * Author: mad */ #include <mmx/NodeClient.hxx> #include <mmx/WalletClient.hxx> #include <vnx/vnx.h> #include <vnx/Proxy.h> int main(int argc, char** argv) { std::map<std::string, std::string> options;...
deemsterTom/mmx-node
src/ProofOfSpace.cpp
<gh_stars>1-10 /* * ProofOfSpace.cpp * * Created on: Nov 30, 2021 * Author: mad */ #include <mmx/ProofOfSpace.hxx> #include <mmx/write_bytes.h> namespace mmx { mmx::hash_t ProofOfSpace::calc_hash() const { std::vector<uint8_t> buffer; vnx::VectorOutputStream stream(&buffer); vnx::OutputBuffer out(&str...
deemsterTom/mmx-node
generated/src/Router_get_peers.cpp
// AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/Router_get_peers.hxx> #include <mmx/Router_get_peers_return.hxx> #include <vnx/Value.h> #include <vnx/vnx.h> namespace mmx { const vnx::Hash64 Router_get_peers::VNX_TYPE_HASH(0x66d68bd91b462049ull); const vnx::Hash64 Router_get_peers::VN...
deemsterTom/mmx-node
generated/src/ChainParams.cpp
<reponame>deemsterTom/mmx-node<gh_stars>0 // AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/ChainParams.hxx> #include <mmx/ulong_fraction_t.hxx> #include <vnx/Value.h> #include <vnx/vnx.h> namespace mmx { const vnx::Hash64 ChainParams::VNX_TYPE_HASH(0x51bba8d28881e8e7ull); const vnx::Ha...
deemsterTom/mmx-node
generated/include/mmx/RouterBase.hxx
// AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_RouterBase_HXX_ #define INCLUDE_mmx_RouterBase_HXX_ #include <mmx/package.hxx> #include <mmx/Block.hxx> #include <mmx/PeerInfo.hxx> #include <mmx/ProofOfTime.hxx> #include <mmx/ProofResponse.hxx> #include <mmx/Transaction.hxx> #include <mmx/hash_t.hpp> #include ...
deemsterTom/mmx-node
generated/src/Node_get_block_at_return.cpp
// AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/Node_get_block_at_return.hxx> #include <mmx/Block.hxx> #include <vnx/Value.h> #include <vnx/vnx.h> namespace mmx { const vnx::Hash64 Node_get_block_at_return::VNX_TYPE_HASH(0x6e3c22a7391c5491ull); const vnx::Hash64 Node_get_block_at_retu...
deemsterTom/mmx-node
include/mmx/secp256k1.hpp
<reponame>deemsterTom/mmx-node<filename>include/mmx/secp256k1.hpp /* * secp256k1.hpp * * Created on: Nov 28, 2021 * Author: mad */ #ifndef INCLUDE_MMX_SECP256K1_HPP_ #define INCLUDE_MMX_SECP256K1_HPP_ #include <secp256k1.h> namespace mmx { extern const secp256k1_context* g_secp256k1; void secp256k1_ini...
deemsterTom/mmx-node
include/mmx/signature_t.hpp
/* * signature_t.hpp * * Created on: Nov 25, 2021 * Author: mad */ #ifndef INCLUDE_MMX_SIGNATURE_T_HPP_ #define INCLUDE_MMX_SIGNATURE_T_HPP_ #include <mmx/hash_t.hpp> #include <mmx/skey_t.hpp> #include <mmx/pubkey_t.hpp> #include <mmx/secp256k1.hpp> namespace mmx { struct signature_t : bytes_t<64> { t...
deemsterTom/mmx-node
generated/include/mmx/TimeLordClient.hxx
<gh_stars>1-10 // AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_TimeLord_CLIENT_HXX_ #define INCLUDE_mmx_TimeLord_CLIENT_HXX_ #include <vnx/Client.h> #include <mmx/IntervalRequest.hxx> #include <mmx/TimeInfusion.hxx> #include <vnx/Module.h> #include <vnx/TopicPtr.hpp> namespace mmx { class TimeLordClient : ...
deemsterTom/mmx-node
generated/include/mmx/stxo_entry_t.hxx
// AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_stxo_entry_t_HXX_ #define INCLUDE_mmx_stxo_entry_t_HXX_ #include <mmx/package.hxx> #include <mmx/txio_key_t.hxx> #include <mmx/utxo_entry_t.hxx> #include <mmx/utxo_t.hxx> namespace mmx { struct stxo_entry_t : ::mmx::utxo_entry_t { ::mmx::txio_key_t spent...
deemsterTom/mmx-node
generated/wallet/src/tx_type_e.cpp
<reponame>deemsterTom/mmx-node // AUTO GENERATED by vnxcppcodegen #include <mmx/wallet/package.hxx> #include <mmx/wallet/tx_type_e.hxx> #include <vnx/vnx.h> namespace mmx { namespace wallet { const vnx::Hash64 tx_type_e::VNX_TYPE_HASH(0x253be3534b9b9756ull); const vnx::Hash64 tx_type_e::VNX_CODE_HASH(0x184deba80...
deemsterTom/mmx-node
include/mmx/hash_t.hpp
<filename>include/mmx/hash_t.hpp /* * hash_t.hpp * * Created on: Nov 25, 2021 * Author: mad */ #ifndef INCLUDE_MMX_HASH_T_HPP_ #define INCLUDE_MMX_HASH_T_HPP_ #include <uint256_t.h> #include <mmx/bytes_t.hpp> namespace mmx { struct hash_t : bytes_t<32> { typedef bytes_t<32> super_t; hash_t() = defa...
deemsterTom/mmx-node
src/contract/PubKey.cpp
<filename>src/contract/PubKey.cpp /* * PubKey.cpp * * Created on: Dec 10, 2021 * Author: mad */ #include <mmx/contract/PubKey.hxx> #include <mmx/solution/PubKey.hxx> namespace mmx { namespace contract { vnx::bool_t PubKey::validate( std::shared_ptr<const Operation> operation, std::shared_ptr<cons...
deemsterTom/mmx-node
generated/include/mmx/RouterAsyncClient.hxx
<reponame>deemsterTom/mmx-node<filename>generated/include/mmx/RouterAsyncClient.hxx<gh_stars>0 // AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_Router_ASYNC_CLIENT_HXX_ #define INCLUDE_mmx_Router_ASYNC_CLIENT_HXX_ #include <vnx/AsyncClient.h> #include <mmx/Block.hxx> #include <mmx/PeerInfo.hxx> #include <mmx/P...
deemsterTom/mmx-node
generated/src/NodeAsyncClient.cpp
// AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/NodeAsyncClient.hxx> #include <mmx/Block.hxx> #include <mmx/BlockHeader.hxx> #include <mmx/ChainParams.hxx> #include <mmx/Contract.hxx> #include <mmx/Node_add_block.hxx> #include <mmx/Node_add_block_return.hxx> #include <mmx/Node_add_transact...
deemsterTom/mmx-node
src/Wallet.cpp
/* * Wallet.cpp * * Created on: Dec 11, 2021 * Author: mad */ #include <mmx/Wallet.h> #include <mmx/utxo_t.hpp> #include <mmx/utxo_entry_t.hpp> #include <mmx/stxo_entry_t.hpp> #include <mmx/solution/PubKey.hxx> #include <mmx/utils.h> #include <vnx/vnx.h> #include <algorithm> namespace mmx { Wallet::Wall...
deemsterTom/mmx-node
generated/include/mmx/Block.hxx
// AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_Block_HXX_ #define INCLUDE_mmx_Block_HXX_ #include <mmx/package.hxx> #include <mmx/BlockHeader.hxx> #include <mmx/TransactionBase.hxx> #include <mmx/hash_t.hpp> namespace mmx { class Block : public ::mmx::BlockHeader { public: std::vector<std::shared_ptr<c...
deemsterTom/mmx-node
test/test_secp256k1.cpp
<gh_stars>100-1000 /* * test_secp256k1.cpp * * Created on: Nov 28, 2021 * Author: mad */ #include <mmx/Block.hxx> #include <mmx/skey_t.hpp> #include <mmx/pubkey_t.hpp> #include <mmx/txio_key_t.hpp> #include <mmx/solution/PubKey.hxx> #include <vnx/vnx.h> #include <unordered_map> using namespace mmx; sta...
deemsterTom/mmx-node
test/test_validation.cpp
<reponame>deemsterTom/mmx-node<gh_stars>100-1000 /* * test_validation.cpp * * Created on: Nov 27, 2021 * Author: mad */ #include <mmx/Block.hxx> #include <mmx/skey_t.hpp> #include <mmx/pubkey_t.hpp> #include <mmx/solution/PubKey.hxx> #include <vnx/vnx.h> using namespace mmx; static constexpr uint64_t CO...
deemsterTom/mmx-node
test/test_hash_vdl.cpp
<filename>test/test_hash_vdl.cpp<gh_stars>100-1000 /* * test_hash_vdl.cpp * * Created on: Dec 6, 2021 * Author: mad */ #include <mmx/ProofOfTime.hxx> #include <vnx/vnx.h> using namespace mmx; int main(int argc, char** argv) { const size_t num_iter = 5000 * 1000; const size_t segment_len = num_iter / 2...
deemsterTom/mmx-node
src/chiapos/chiapos.cpp
/* * chiapos.cpp * * Created on: Dec 9, 2021 * Author: mad */ #include <picosha2.hpp> #include <verifier.hpp> #include <prover_disk.hpp> #include <mmx/chiapos.h> namespace mmx { namespace chiapos { DiskProver::DiskProver(const std::string& file_path) { impl = new ::DiskProver(file_path); } DiskProver:...
deemsterTom/mmx-node
generated/src/WalletBase.cpp
<gh_stars>0 // AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/WalletBase.hxx> #include <vnx/NoSuchMethod.hxx> #include <mmx/FarmerKeys.hxx> #include <mmx/Wallet_get_address.hxx> #include <mmx/Wallet_get_address_return.hxx> #include <mmx/Wallet_get_all_addresses.hxx> #include <mmx/Wallet_get_...
ashusharmasigdev/windowjs
src/subprocess.cc
#include "subprocess.h" #include <string.h> #include <algorithm> #include <sstream> #include "fail.h" #include "file.h" #include "thread.h" // static std::unique_ptr<Pipe> Pipe::Spawn(std::string exe_path, std::vector<std::string> args, bool child_log, ...
kapsitis/lu-datastructures-workspace
lect0223/priority_queue.cpp
#include <queue> #include <vector> #include <iostream> using namespace std; class Triplet { public: int num; int idx; int dist; Triplet(int n, int i, int d) { num = n; idx = i; dist = d; } void print() { cout << "("<< num << ", " << idx << ", " << dist <<...
kapsitis/lu-datastructures-workspace
task-bears/main.cpp
<filename>task-bears/main.cpp #include <iostream> #include <fstream> #include <string> #include "arraystack.h" #include "stackset.h" using namespace std; int main() { /* ArrayStack as; as.push("aaa"); as.push("bbb"); as.push("ccc"); as.print(); cout << "POP" << as.pop() << endl; // ccc as...
kapsitis/lu-datastructures-workspace
lect0223/main.cpp
//#include <vector> #include <list> #include <iostream> #include <string> using namespace std; class Point { public: int x, y; string name; list<int> myList; Point(int x1, int y1) { x = x1; y = y1; } void print() { cout << "(" << x << ", " << y << ", " << name << "," << myList.front() << "...
kapsitis/lu-datastructures-workspace
task-bears/stackset.cpp
#include <iostream> #include <string> #include "arraystack.h" #include "stackset.h" using namespace std; // create an empty set // make 2 empty stacks StackSet::StackSet() { } // return true iff there was no duplicate bool StackSet::insert(string s) { // transfer all from stack1 to stack2, look for duplicates (=...
kapsitis/lu-datastructures-workspace
task-bears/arraystack.cpp
<reponame>kapsitis/lu-datastructures-workspace #include <iostream> #include <string> #include "arraystack.h" using namespace std; ArrayStack::ArrayStack() { count = 0; } void ArrayStack::push(string s) { elements[count] = s; count++; } void ArrayStack::print() { cout << "Stack size is " << count << ...
Srizon143005/Computer-Graphics-and-Animation
Lab-02/Code-1/main.cpp
#include <windows.h> #include <stdio.h> #include <GL/glut.h> void triangle(){ glBegin(GL_TRIANGLES); glVertex2f(-0.3, 0.31); glVertex2f(0.0, 0.0); glVertex2f(0.3, 0.31); glEnd(); } void quad(){ glBegin(GL_POLYGON); glVertex2f(-0.59, 0.61); glVertex2f(0.0, 0.31); ...
Srizon143005/Computer-Graphics-and-Animation
Lab-04/Code-1/main.cpp
/* Author: <NAME> Controls: Down: 2 | Rotate: R | Triangle: T | Leaf: M Left: 4 | AntiRotate: E | Quad: Q | Quit: X Right: 6 | ScaleUp: S | Polygon1: O | Up: 8 | ScaleDown: D | Polygon2: P | */ #include <windows.h> #incl...
Srizon143005/Computer-Graphics-and-Animation
Lab-04/Code-2/main.cpp
#include <windows.h> #include <stdio.h> #include <GL/glut.h> void triangle(){ glBegin(GL_TRIANGLES); glColor3f(0.0, 0.0, 1.0); glVertex2f(-0.3*0.152, 0.31*0.4); glColor3f(1.0, 0.0, 0.0); glVertex2f(0.0*0.152, 0.0*0.4); glColor3f(0.0, 1.0, 0.0); glVertex2f(0.3*0.152, ...
Srizon143005/Computer-Graphics-and-Animation
Lab-01/Code-1/main.cpp
#include <windows.h> #include <stdio.h> #include <GL/glut.h> void display(){ glBegin(GL_TRIANGLES); glColor3f(0.0, 0.0, 1.0); glVertex2f(-0.5,-0.25); glColor3f(1.0, 0.0, 0.0); glVertex2f(0.5,-0.25); glColor3f(0.0, 1.0, 0.0); glVertex2f(0, 0.25); glEnd(); glF...
Srizon143005/Computer-Graphics-and-Animation
Lab-05/Code-1/main.cpp
#include <windows.h> #include <stdio.h> #include <GL/glut.h> bool key[256]; double eye_x, eye_y, eye_z, center_x, center_y, center_z, up_x, up_y, up_z; double scale_x, scale_y, scale_z; double fovy_value, aspect_value, near_value, far_value; void initialize(){ for(int i=0; i<256; i++) key[i]=false; e...
veracrypt/VeraStatus
src/main.cpp
<reponame>veracrypt/VeraStatus /* Legal Notice: Some portions of the source code contained in this file were derived from the source code of TrueCrypt 7.1a, which is Copyright (c) 2003-2012 TrueCrypt Developers Association and which is governed by the TrueCrypt License 3.0, also from the source code of Encryptio...
amaiorano/Native_SDK
framework/PVRShell/OS/Linux/InternalOS.cpp
<reponame>amaiorano/Native_SDK<filename>framework/PVRShell/OS/Linux/InternalOS.cpp /*! \brief Contains the implementation for a common pvr::platform::InternalOS class which will be used for Linux window systems. \file PVRShell/OS/Linux/InternalOS.cpp \author PowerVR by Imagination, Developer Technology Team \copyright ...
amaiorano/Native_SDK
framework/PVRCore/texture/Texture.cpp
<reponame>amaiorano/Native_SDK<filename>framework/PVRCore/texture/Texture.cpp<gh_stars>0 /*! \brief Implementation of methods of the Texture class. \file PVRCore/texture/Texture.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGE...
amaiorano/Native_SDK
examples/Vulkan/Navigation3D/VulkanNavigation3D.cpp
/*!********************************************************************************************************************* \File VulkanNavigation3D.cpp \Title Vulkan Navigation 3D \Author PowerVR by Imagination, Developer Technology Team \Copyright Copyright (c) Imagination Technologies Limited. \...
amaiorano/Native_SDK
framework/PVRVk/DebugUtilsMessengerVk.cpp
<gh_stars>100-1000 /*! \brief Function implementations for the DebugUtilsMessenger class. \file PVRVk/DebugUtilsMessengerVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRVk/DebugUtilsMessengerVk.h" #include "PVRVk/InstanceVk.h" ...
amaiorano/Native_SDK
examples/Vulkan/DeferredShading/VulkanDeferredShading.cpp
/*!********************************************************************************************************************* \File VulkanDeferredShading.cpp \Title Deferred Shading \Author PowerVR by Imagination, Developer Technology Team \Copyright Copyright (c) Imagination Technologies Limited. \D...
amaiorano/Native_SDK
framework/PVRVk/QueryPoolVk.cpp
/*! \brief Function implementations for the Command Pool. \file PVRVk/CommandPoolVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRVk/QueryPoolVk.h" #include "PVRVk/DeviceVk.h" namespace pvrvk { namespace impl { //!\cond NO_DOXYG...
amaiorano/Native_SDK
framework/PVRUtils/Vulkan/SpriteVk.cpp
<reponame>amaiorano/Native_SDK /*! \brief Contains implementations of functions for the Sprite_ class and subclasses (Sprite_, Text_, Image_, Font_, MatrixGroup_) \file PVRUtils/Vulkan/SpriteVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //...
amaiorano/Native_SDK
framework/PVRVk/DebugReportCallbackVk.cpp
/*! \brief Function implementations for the DebugReportCallback class. \file PVRVk/DebugReportCallbackVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRVk/DebugReportCallbackVk.h" #include "PVRVk/InstanceVk.h" namespace pvrvk { n...
amaiorano/Native_SDK
framework/PVRCore/Time.cpp
<filename>framework/PVRCore/Time.cpp /*! \brief Implementations of methods of the Time class. \file PVRCore/Time.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #if defined(_WIN32) #ifndef WIN32_LEAN_AND_MEAN #define WIN32_L...
amaiorano/Native_SDK
examples/OpenGLES/04_IntroducingUIRenderer/OpenGLESIntroducingUIRenderer.cpp
<reponame>amaiorano/Native_SDK /*!****************************************************************************************************************** \File OpenGLESIntroducingUIRenderer.cpp \Title Introducing uiRenderer \Author PowerVR by Imagination, Developer Technology Team \Copyright Copyrigh...
amaiorano/Native_SDK
examples/Vulkan/DeferredShadingPFX/VulkanDeferredShadingPFX.cpp
/*!********************************************************************************************************************* \File VulkanDeferredShadingPFX.cpp \Title Deferred Shading \Author PowerVR by Imagination, Developer Technology Team \Copyright Copyright (c) Imagination Technologies Limited....
amaiorano/Native_SDK
examples/OpenGLES/IMGTextureFilterCubic/OpenGLESIMGTextureFilterCubic.cpp
/*!********************************************************************************************************************* \File OpenGLESIMGTextureFilterCubic.cpp \Title Introducing the POD 3D file format \Author PowerVR by Imagination, Developer Technology Team \Copyright Copyright (c) Imaginatio...
amaiorano/Native_SDK
framework/PVRUtils/OpenGLES/ErrorsGles.cpp
/*! \brief Contains implementation for the ApiErrors utilities \file PVRUtils/OpenGLES/ErrorsGles.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRUtils/OpenGLES/ErrorsGles.h" #include "PVRUtils/OpenGLES/Bindings...
amaiorano/Native_SDK
framework/PVRVk/FenceVk.cpp
<filename>framework/PVRVk/FenceVk.cpp /*! \brief Function definitions for Fence class \file PVRVk/FenceVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRVk/FenceVk.h" #include "PVRVk/BufferVk.h" #include "PVRVk/ImageVk.h" namespa...
amaiorano/Native_SDK
framework/PVRVk/DisplayModeVk.cpp
/*! \brief Function implementations of the Vulkan Device class. \file PVRVk/DeviceVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRVk/DisplayModeVk.h" #include "PVRVk/DisplayVk.h" namespace pvrvk { namespace...
amaiorano/Native_SDK
examples/Vulkan/GameOfLife/VulkanGameOfLife.cpp
/*! \brief This demo demonstrates how Conway's Game of Life can be implemented efficiently using Compute in Vulkan. \file VulkanGameOfLife.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRShell/PVRShell.h" #include "PVRUtils/PVRUti...
amaiorano/Native_SDK
framework/PVRShell/OS/Android/ShellOS.cpp
/*! \brief Contains the implementation for the pvr::platform::ShellOS class on Android systems. \file PVRShell/OS/Android/ShellOS.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRShell/OS/ShellOS.h" #include "PVRCore/stream/FilePath...
amaiorano/Native_SDK
framework/PVRShell/OS/Linux/XCB/ShellOS.cpp
/*! \brief Contains the implementation of pvr::platform::ShellOS for Linux X11 systems. \file PVRShell/OS/X11/ShellOS.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRShell/OS/ShellOS.h" #include "PVRShell/OS/Lin...
amaiorano/Native_SDK
framework/PVRCamera/CameraInterface_Android.cpp
<filename>framework/PVRCamera/CameraInterface_Android.cpp /*! \brief Implementation of the Android camera interface. \file PVRCamera/CameraInterface_Android.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Platform independent camera interface API include file. */ #include "PVRCamera/CameraInte...
amaiorano/Native_SDK
examples/Vulkan/01_HelloAPI/MainLinuxWayland.cpp
<reponame>amaiorano/Native_SDK /*!********************************************************************************************************************* \File MainWayland.cpp \Title Main Linux Wayland \Author PowerVR by Imagination, Developer Technology Team. \Copyright Copyright(c) Imagination T...
amaiorano/Native_SDK
examples/Vulkan/ParticleSystem/ParticleSystemGPU.cpp
<reponame>amaiorano/Native_SDK<gh_stars>0 /*! \brief Particle system implemented using GPU Compute Shaders. \file ParticleSystemGPU.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "ParticleSystemGPU.h" #include "PVRVk/ComputePipelineVk...
amaiorano/Native_SDK
examples/Vulkan/01_HelloAPI/MainNullWS.cpp
<filename>examples/Vulkan/01_HelloAPI/MainNullWS.cpp<gh_stars>100-1000 /*!********************************************************************************************************************* \File MainLinuxNullWS.cpp \Title Main Linux NullWS \Author PowerVR by Imagination, Developer Technology Tea...
amaiorano/Native_SDK
examples/Vulkan/01_HelloAPI/MainAndroid.cpp
<reponame>amaiorano/Native_SDK<gh_stars>100-1000 /*!********************************************************************************************************************* \File MainAndroid.cpp \Title Main Android \Author PowerVR by Imagination, Developer Technology Team. \Copyright Copyright(c) I...
amaiorano/Native_SDK
framework/PVRCore/textureio/TextureReaderPVR.cpp
/*! \brief Implementation of methods of the TextureReaderPVR class. \file PVRCore/textureio/TextureReaderPVR.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRCore/textureio/TextureReaderPVR.h" #include "PVRCore/L...
amaiorano/Native_SDK
framework/PVRVk/SamplerVk.cpp
<filename>framework/PVRVk/SamplerVk.cpp /*! \brief Function definitions for the Sampler class. \file PVRVk/SamplerVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRVk/SamplerVk.h" namespace pvrvk { namespace impl { //!\cond NO_DO...
amaiorano/Native_SDK
framework/PVRCore/textureio/TextureReaderBMP.cpp
<gh_stars>100-1000 /*! \brief Implementation of methods of the TextureReaderBMP class. \file PVRCore/textureio/TextureReaderBMP.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRCore/stream/FilePath.h" #include "P...
amaiorano/Native_SDK
framework/PVRShell/EntryPoint/android_main/main.cpp
/*! \brief Entry point for Android systems (android_main). \file PVRShell/EntryPoint/android_main/main.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRShell/OS/ShellOS.h" #include "PVRShell/StateMachine.h" #include "PVRCore/command...
amaiorano/Native_SDK
framework/PVRCore/textureio/TextureWriterPVR.cpp
/*! \brief Implementation of methods of the TextureWriterPVR class. \file PVRCore/textureio/TextureWriterPVR.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRCore/textureio/TextureWriterPVR.h" #include "PVRCore/t...
amaiorano/Native_SDK
framework/PVRVk/DebugUtilsVk.cpp
<reponame>amaiorano/Native_SDK<filename>framework/PVRVk/DebugUtilsVk.cpp /*! \brief Function implementations for the DebugUtilsImpl class \file PVRVk/DebugUtilsVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVR...
amaiorano/Native_SDK
framework/PVRCore/textureio/TextureReaderKTX.cpp
/*! \brief Implementation of methods of the TextureReaderKTX class. \file PVRCore/textureio/TextureReaderKTX.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRCore/textureio/TextureReaderKTX.h" #include "PVRCore/t...
amaiorano/Native_SDK
framework/PVRAssets/Helper.cpp
<reponame>amaiorano/Native_SDK<filename>framework/PVRAssets/Helper.cpp /*! \brief Implementation of helper functions used around the PVRAssets library \file PVRAssets/Helper.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN ...
amaiorano/Native_SDK
framework/PVRShell/OS/Linux/X11/ShellOS.cpp
/*! \brief Contains the implementation of pvr::platform::ShellOS for Linux X11 systems. \file PVRShell/OS/X11/ShellOS.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRShell/OS/ShellOS.h" #include "PVRShell/OS/Lin...
amaiorano/Native_SDK
framework/PVRVk/BufferVk.cpp
<reponame>amaiorano/Native_SDK<filename>framework/PVRVk/BufferVk.cpp /*! \brief Function definitions for the Buffer class. \file PVRVk/BufferVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRVk/BufferVk.h" nam...
amaiorano/Native_SDK
examples/Vulkan/ImageBasedLighting/VulkanImageBasedLighting.cpp
<reponame>amaiorano/Native_SDK<filename>examples/Vulkan/ImageBasedLighting/VulkanImageBasedLighting.cpp /*!********************************************************************************************************************* \File VulkanImageBasedLighting.cpp \Title Introducing the PowerVR Framework \Aut...
amaiorano/Native_SDK
framework/PVRVk/SemaphoreVk.cpp
<gh_stars>100-1000 /*! \brief Function definitions for Semaphore class \file PVRVk/SemaphoreVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #include "PVRVk/SemaphoreVk.h" #include "PVRVk/BufferVk.h" #include "PVRVk/ImageVk.h" namespace pvrv...
amaiorano/Native_SDK
examples/Vulkan/Glass/VulkanGlass.cpp
<reponame>amaiorano/Native_SDK<gh_stars>0 /*!********************************************************************************************************************* \file VulkanGlass.cpp \Title Glass \Author PowerVR by Imagination, Developer Technology Team \Copyright Copyright (c) Imagination Tec...
amaiorano/Native_SDK
framework/PVRCore/pfx/PFXParser.cpp
<reponame>amaiorano/Native_SDK /*! \brief Implementation of methods of the PFXReader class. \file PVRCore/pfx/PFXParser.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRCore/pfx/PFXParser.h" #include "PVRCore/st...
amaiorano/Native_SDK
examples/Vulkan/Bumpmap/VulkanBumpmap.cpp
/*!********************************************************************************************************************* \File VulkanBumpmap.cpp \Title Bump mapping \Author PowerVR by Imagination, Developer Technology Team \Copyright Copyright (c) Imagination Technologies Limited. \brief Sh...
amaiorano/Native_SDK
framework/PVRUtils/Vulkan/PBRUtilsVk.cpp
<reponame>amaiorano/Native_SDK<filename>framework/PVRUtils/Vulkan/PBRUtilsVk.cpp /*! \brief Contains Vulkan-specific utilities to facilitate Physically Based Rendering tasks, such as generating irradiance maps and BRDF lookup tables. \file PVRUtils/Vulkan/PBRUtilsVk.cpp \author PowerVR by Imagination, Developer Technol...
amaiorano/Native_SDK
framework/PVRVk/ExtensionsVk.cpp
/*! \brief Function definitions for Extensions functionality \file PVRVk/ExtensionsVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRVk/ExtensionsVk.h" #include "PVRVk/InstanceVk.h" namespace pvrvk { namespac...
amaiorano/Native_SDK
framework/PVRCore/textureio/TextureReaderXNB.cpp
/*! \brief Implementation of methods of the TextureWriterXNB class. \file PVRCore/textureio/TextureReaderXNB.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRCore/textureio/TextureReaderXNB.h" #include "FileDefin...
amaiorano/Native_SDK
examples/Vulkan/01_HelloAPI/MainWindows.cpp
<reponame>amaiorano/Native_SDK /*!********************************************************************************************************************* \File MainWindows.cpp \Title Main Windows \Author PowerVR by Imagination, Developer Technology Team. \Copyright Copyright(c) Imagination Technol...
amaiorano/Native_SDK
framework/PVRShell/OS/Linux/NullWS/ShellOS.cpp
/*! \brief Contains the implementation for the pvr::platform::ShellOS class on Null Windowing System platforms (Linux & QNX). \file PVRShell/OS/Linux/NullWS/ShellOS.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "P...
amaiorano/Native_SDK
framework/PVRUtils/Vulkan/HelperVk.cpp
/*! \brief Implementation for a number of functions defined in the HelperVk header file. \file PVRUtils/Vulkan/HelperVk.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "HelperVk.h" #include "PVRCore/texture/PVRTDec...