[QUOTE=bobiniki;39192866]I made a simple program that concatenates sound files.
[IMG]http://i.imgur.com/SDG0P.png[/IMG]
Simpy start cmd.exe and navigate to the program location. Type the program name and pass arguments. The last argument is the path where to save the combined sounds. All other arguments is just list of files that are combine one after another.[/QUOTE]
"soundcat" would be a better name.
[QUOTE=danharibo;39193456]"soundcat" would be a better name.[/QUOTE]
sndcat.
[QUOTE=bobiniki;39192866]I made a simple program that concatenates sound files.
[IMG]http://i.imgur.com/SDG0P.png[/IMG]
Simpy start cmd.exe and navigate to the program location. Type the program name and pass arguments. The last argument is the path where to save the combined sounds. All other arguments is just list of files that are combine one after another.[/QUOTE]
Not that it matters, but the fact that you misspelled "concatinator" is really bugging me.
[QUOTE=thomasfn;39193080]What does that button do?
You know which one I am referring to.[/QUOTE]
[img]http://puu.sh/1LDrM[/img]
[QUOTE=SiPlus;39193627]sndcat.[/QUOTE]
scat
[QUOTE=Rayjingstorm;39193656]Not that it matters, but the fact that you misspelled "concatinator" is really bugging me.[/QUOTE]
Do you mean "concatenator"?
[QUOTE=ThePuska;39193708]Do you mean "concatenator"?[/QUOTE]
I suppose I had no place to talk :v: but my point still stands.
[QUOTE=Perl;39193683]scat[/QUOTE]
sc
[QUOTE=SiPlus;39193789]sc[/QUOTE]
s
-schnip-
Is there any decent fairly lightweight font rendering library for C++? I mean "font rendering" as in I feed it a font file, a Unicode string (in some encoding) and screen coordinates, then it spits out something for me to render, or it renders it by itself.
[QUOTE=cartman300;39193841]s[/QUOTE]
[QUOTE=ECrownofFire;39194061]Is there any decent fairly lightweight font rendering library for C++? I mean "font rendering" as in I feed it a font file, a Unicode string (in some encoding) and screen coordinates, then it spits out something for me to render, or it renders it by itself.[/QUOTE]
SFML?
[QUOTE=T3hGamerDK;39193343]You post a utility, how to use it, but no linkss to where to get it?[/QUOTE]
I actually forgot to post a link. [URL="http://filesmelt.com/dl/SoundConcatiator.rar"]Here[/URL]
Also I renamed the exe to soundcat.
[QUOTE=Rayjingstorm;39193656]Not that it matters, but the fact that you misspelled "concatinator" is really bugging me.[/QUOTE]
Usage too
-snip-
[QUOTE=ECrownofFire;39194061]Is there any decent fairly lightweight font rendering library for C++? I mean "font rendering" as in I feed it a font file, a Unicode string (in some encoding) and screen coordinates, then it spits out something for me to render, or it renders it by itself.[/QUOTE]
SFML can do that for you, though 1.6 has some issues with AMD cards so make sure to use 2.0
SFML isn't quite as low-level (and lightweight) as I want. I'm using GLFW and manually handling pretty much everything.
Try this:
[url]http://code.google.com/p/freetype-gl/[/url]
Or just implement freetype yourself, I don't think it would be too difficult.
snowy mountains ;)
[img]http://puu.sh/1MVcf[/img]
I'm a dumb code babby doing dumb lua babby things.
[code]EnemyData = { };
table.insert( EnemyData,
{
Name = "GrassThing",
NiceName = "Shit Grass Thing",
HP = 30,
Power = 10,
Defense = 1,
Speed = 5,
Luck = 5,
IdleAnimID = 1,
Sprites =
{
"Graphics/Sprites/Battle/grassthing_idle.spr",
},
SpriteCount = 1,
} );
EnemyData.Count = #EnemyData + 1;
Engine.SetEnemyData( EnemyData );[/code]
[code]
void CGameInterface::RegisterLuaEngineHooks()
{
RegisterNameSpace( m_pLuaState, "Base" );
RegisterNameSpace( m_pLuaState, "Engine" );
RegisterNameSpaceFunction( m_pLuaState, "Engine", "SetEnemyData", LUAENGINE_SetEnemyData );
}
int LUAENGINE_SetEnemyData( lua_State * s )
{
if( lua_istable( s, 1 ) )
{
int c = LuaStringKeyIntValue( s, 1, "Count" );
for( int j = 1; j < c; j++ )
{
lua_pushnumber( s, j );
lua_gettable( s, 1 );
std::string name = LuaStringKeyStringValue( s, -1, "Name" );
std::string nicename = LuaStringKeyStringValue( s, -1, "NiceName" );
int hp = LuaStringKeyIntValue( s, -1, "HP" );
int pwr = LuaStringKeyIntValue( s, -1, "Power" );
int def = LuaStringKeyIntValue( s, -1, "Defense" );
int spd = LuaStringKeyIntValue( s, -1, "Speed" );
int luck = LuaStringKeyIntValue( s, -1, "Luck" );
int idleanim = LuaStringKeyIntValue( s, -1, "IdleAnimID" );
CBattleCharacterData * b = new CBattleCharacterData;
b->SetNames( name, nicename );
b->SetHealth( hp );
b->SetStats( pwr, def, spd, luck );
int sc = LuaStringKeyIntValue( s, -1, "SpriteCount" ) + 1;
lua_pushstring( s, "Sprites" );
lua_gettable( s, 2 );
for( int i = 1; i < sc; i++ )
{
lua_pushnumber( s, i );
lua_gettable( s, 3 );
std::string dir = lua_tostring( s, -1 );
CMaterial * mat = g_pGameInterface->Graphics()->Find( dir );
b->AddSprite( mat );
lua_pop( s, 1 );
}
g_pGameInterface->BattleSystem()->GetBattleStats()->AddStat( b );
lua_pop( s, 2 );
}
}
lua_pop( s, 1 );
return 0;
}[/code]
[QUOTE=ECrownofFire;39194061]Is there any decent fairly lightweight font rendering library for C++? I mean "font rendering" as in I feed it a font file, a Unicode string (in some encoding) and screen coordinates, then it spits out something for me to render, or it renders it by itself.[/QUOTE]
I don't know how lightweight freetype is but apparently fucking everyone uses it
[QUOTE=esalaka;39195558]I don't know how lightweight freetype is but apparently fucking everyone uses it[/QUOTE]
FreeType is not exactly lightweight, there isn't a "LoadFont" or "DrawFont" method that just spits out what you want. But it gets the job done still if you figure out how to use it.
This is the FreeType code in my current project: [url]https://code.google.com/p/soringame/source/browse/trunk/fontmaterial.cpp[/url]
[QUOTE=DarkCybo7;39195617]FreeType is not exactly lightweight, there isn't a "LoadFont" or "DrawFont" method that just spits out what you want. But it gets the job done still if you figure out how to use it.
This is the FreeType code in my current project: [url]https://code.google.com/p/soringame/source/browse/trunk/fontmaterial.cpp[/url][/QUOTE]
I think the term you're looking for is high-level.
nope
I made a hello world program in C
[url=http://pastebin.com/d6C2VeBc][img]http://i.imgur.com/WzZPH.png[/img][/url]
Click the image for the source if you want it. It should print "hello world" and then enter an infinite loop
It's probably more likely to throw an access violation than to execute correctly.
[IMG]http://puu.sh/1MYaU[/IMG]
lol wat.
I was making weapons and simple weapons hud ([URL="http://www.facepunch.com/showthread.php?t=1238910"]from this thread[/URL]) and that happened...
It shouldn't render on the ship... it should render in upper left cornet .__.
EDIT:
Awwww... i forgot to do Gl.glLoadIdentity(); in the drawing function.