This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "graphics/Shader.h" | |
#include "graphics/ShaderCache.h" | |
namespace Kigu | |
{ | |
Shader::Shader(const std::string name, const File& vertex, const File& fragment) | |
: m_Name(name), m_Program(glCreateProgram()) | |
{ | |
if (!ShaderCache::IsCachingSupported()) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export type InlineCodeProps = { | |
children: React.ReactNode; | |
}; | |
export default function InlineCode(props: InlineCodeProps) { | |
return ( | |
<span className="font-mono bg-gray-300/75 rounded-md px-1"> | |
{props.children} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use polling::{Event, Poller}; | |
use std::io::prelude::*; | |
use std::net::{Ipv4Addr, SocketAddrV4, TcpListener, TcpStream}; | |
use std::time::Duration; | |
/// Represents the state of a frame in which the length component is being decoded. | |
struct LengthState { | |
/// Current value of the length component. | |
value: u32, | |
/// Amount to shift value down when reading new bytes. |