Skip to content

Instantly share code, notes, and snippets.

View pollend's full-sized avatar
:octocat:
working on random stuff

Michael Pollind pollend

:octocat:
working on random stuff
View GitHub Profile
diff --git a/source/cgame/cg_players.cpp b/source/cgame/cg_players.cpp
index a1aeba8c6..8a9589546 100644
--- a/source/cgame/cg_players.cpp
+++ b/source/cgame/cg_players.cpp
@@ -270,7 +270,6 @@ void CG_LoadClientInfo( cg_clientInfo_t *ci, const char *info, int client )
s = Info_ValueForKey( info, "m" );
ci->modelindex = s && s[0] ? atoi( s ) : 0;
-
s = Info_ValueForKey( info, "steam_id" );
void R_ETC1DecodeBlock_RGBA8( uint8_t *block, struct uint_8_4 colors[ETC1_BLOCK_WIDTH * ETC1_BLOCK_HEIGHT] )
{
// implementation: https://registry.khronos.org/OpenGL/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt
// BCF -- Base Color Flag
// no diff bit is set
// 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
// -----------------------------------------------
// | base col1 | base col2 | base col1 | base col2 |
// | R1 (4bits)| R2 (4bits)| G1 (4bits)| G2 (4bits)|
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: false
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: true
MESA_VK_TRACE=rgp MESA_VK_TRACE_FRAME=500 ./Amnesia
cMaterial* cMaterialManager::LoadFromFile(const tString& asName, const tWString& asPath) {
tinyxml2::XMLDocument document;
FILE *pFile = cPlatform::OpenFile(asPath, _W("rb"));
if(!pFile) {
LOGF(LogLevel::eERROR, "failed to load material: %s", asName.c_str());
return nullptr;
}
document.LoadFile(pFile);
#pragma once
#include "graphics/ForgeHandles.h"
#include <folly/small_vector.h>
#include <algorithm>
#include <optional>
#include <array>
#include <span>
#include <cstdint>
@pollend
pollend / material.cpp
Last active September 13, 2023 16:40
NUMaterial.cpp
#pragma once
#include "math/Uuid.h"
#include <cstdint>
#include <engine/RTTI.h>
#include <folly/small_vector.h>
#include <optional>
namespace hpl::material {
This file has been truncated, but you can view the full file.
# 1 "/home/michaelpollind/projects/Nabla/src/nbl/video/IPhysicalDevice.cpp"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 447 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "/home/michaelpollind/projects/Nabla/build/src/nbl/CMakeFiles/Nabla.dir/cmake_pch.hxx.cxx" 1
# 2 "<built-in>" 2
# 1 "/home/michaelpollind/projects/Nabla/build/src/nbl/CMakeFiles/Nabla.dir/cmake_pch.hxx" 1
# 4 "/home/michaelpollind/projects/Nabla/build/src/nbl/CMakeFiles/Nabla.dir/cmake_pch.hxx" 3
U __assert_fail@GLIBC_2.2.5
U calloc@GLIBC_2.2.5
U close@GLIBC_2.2.5
U connect@GLIBC_2.2.5
w __cxa_finalize@GLIBC_2.2.5
U __errno_location@GLIBC_2.2.5
U fcntl@GLIBC_2.2.5
U free@GLIBC_2.2.5
U freeaddrinfo@GLIBC_2.2.5
U getaddrinfo@GLIBC_2.2.5
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzCore/Debug/Trace.h"
#include "AzCore/Math/MathStringConversions.h"