Because we're totally psychic and can discern the full text of your source code from a JPEG image.
What does a single exclamation mark(!) operator do?
for (results = 1; !Check(results); results++);
Like here, where Check() is a boolean method.
It means not
so say check gave back true
it would read results=1;not true;results++
and if you put it like != it means not equal
To make it a bit more clear, ! is the logical negation operator. This means that is turns whatever comes after the ! into its negative. Basically:
!true = false and !false = true.
[QUOTE=Richy19;24221727]
[IMG_THUMB]http://img825.imageshack.us/img825/9554/74431965.jpg[/IMG_THUMB]
[/QUOTE]
Just wondering could this have anything to do with my graphics card? (or lack of it :P) i would doubt it as i imagine all graphics cards even integrated would be able to handle this but i dont know what else to change as i have followed the tutorial fine
[QUOTE=Richy19;24234764]Just wondering could this have anything to do with my graphics card? (or lack of it :P) i would doubt it as i imagine all graphics cards even integrated would be able to handle this but i dont know what else to change as i have followed the tutorial fine[/QUOTE]
If you have a crap graphics card (i.e. Earlier than Geforce 4, Radeon 7000, or integrated), you won't have the hardware for FSAA.
Probably i have a laptop with an integrated graphics: Mobile Intel(R) GMA 4500M so its probably that
[QUOTE=Richy19;24236240]Mobile Intel(R) GMA[/QUOTE]
A better question is how you're able to perform any OpenGL at all D:
Hey GMA is not that bad, it runs HL2 (but without FSAA)
Via a software renderer you can run it on any x86 CPU.
I think there's a software implementation for DirectX up to version 9.
If you are developing with DirectX you get the REF device in the SDK which handles all functionality perfectly but extremely slowly. It also can't be shipped.
Oh right you're talking about running HL2..
[QUOTE=Swebonny;24234281]What does a single exclamation mark(!) operator do?
for (results = 1; !Check(results); results++);
Like here, where Check() is a boolean method.[/QUOTE]
I believe you can also use it in an if statement like this:
[cpp]
if(Textbox1.Text != "Hi")
{
//stuff
}
[/cpp]
[QUOTE=VeryNiceGuy;24241445]I believe you can also use it in an if statement like this:
[cpp]
if(Textbox1.Text != "Hi")
{
//stuff
}
[/cpp][/QUOTE]
That's a completely different operator.
!= is the not comparison operator, ! is the boolean flip operator.
Oh right, sorry. My mistake :v:
[QUOTE=shill le 2nd;24240329]Hey GMA is not that bad, it runs HL2 (but without FSAA)[/QUOTE]
The way DirectX works is that any hardware calls that cannot be performed by the graphics chip is offloaded onto the CPU. As far as I know, this does not occur with OpenGL implementations unless it is built into the operating system, or the drivers (which on Windows does not happen, but does on OS X, via LLVM)
[QUOTE=Jallen;24241513]That's a completely different operator.
!= is the not comparison operator, ! is the boolean flip operator.[/QUOTE]
Then again, (this != that) is equal to !(this == that).
Does not necessarily produce the same assembly.
Chances are pretty good that the compiler will optimize it though.
I just got the idea of making a wget frontend on Windows and including pretty much every useragent string ever. Should I go ahead and do it?
If it's a valuable learning experience, I don't see why not!
In SFML how can I turn of Anti-Alias?
[QUOTE=sim642;24256667]In SFML how can I turn of Anti-Alias?[/QUOTE]
Use "sf::WindowSettings::AntialiasingLevel" when you open your window.
Snip:
Wrong thread
[QUOTE=robmaister12;24251956]I just got the idea of making a wget frontend on Windows and including pretty much every useragent string ever. Should I go ahead and do it?[/QUOTE]
That's a good idea. I like using wget, but sometimes I forget which commandline arguments do what and it gets annoying looking up a reference or using the help switch.
[QUOTE=robmaister12;24251956]I just got the idea of making a wget frontend on Windows and including pretty much every useragent string ever. Should I go ahead and do it?[/QUOTE]
You should use libcurl. Wget doesn't have any API or library to use.
[QUOTE=PvtCupcakes;24280275]You should use libcurl. Wget doesn't have any API or library to use.[/QUOTE]
[code]wget --user-agent=agent-string[/code]
[QUOTE=PvtCupcakes;24280275]You should use libcurl. Wget doesn't have any API or library to use.[/QUOTE]
From what I've read up on libcurl, I'm going to spend more time making a link scraper that wget already has than creating this frontend. All I'm planning on doing is running wget a as a hidden process and redirecting the standard output to my program so I can parse things like the percentage and filename.
Trying to generate some realistic forest on a 2d tile engine, anyone has some pseudocode on how to do that ?
Realistic in what way? Realism is a pretty vast and interpretable concept.
Randomly placed trees would seem good enough if they were separated from each other.
I'm trying to make collisions based on the forms boundaries with a picturebox that moves with WASD in Visual Basic and so far I can only make it work with the left and top of the form:
[code]
Private Sub Simon_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.W Then
PictureBox1.Top = PictureBox1.Top - 15
End If
If e.KeyCode = Keys.S Then
PictureBox1.Top = PictureBox1.Top + 15
End If
If e.KeyCode = Keys.A Then
PictureBox1.Left = PictureBox1.Left - 15
End If
If e.KeyCode = Keys.D Then
PictureBox1.Left = PictureBox1.Left + 15
End If
If PictureBox1.Left < 0 Then
PictureBox1.Left = PictureBox1.Left + 15
End If
If PictureBox1.Top < 0 Then
PictureBox1.Top = PictureBox1.Top + 15
End If
End Sub
[/code]
Can someone help me out? :v:
Sorry, you need to Log In to post a reply to this thread.