10-17-2016
No.
We are developing Memory Controller and came across this case and I am not sure about this.
Dhaval
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
This may be a stupid question, but I want to get a confirmation from experts.
After some painful attempts I was able to successfully dual boot RH Linux 7.3 with the Win XP hp factor install. (I used Partition Magic 8 from WinXP for creating the ext3 partitions)
I have now a nice grub... (3 Replies)
Discussion started by: Vishnu
3 Replies
2. UNIX for Advanced & Expert Users
Hello Community!
Anyone knows how can I access the switch for monitoring the traffic on my LAN?
The switch is a Linksys sr2024
Thanks in advance (1 Reply)
Discussion started by: ncatdesigner
1 Replies
3. Solaris
Hi all,
I managed to get WWN port number & node from trying on
luxadm -e port
luxadm -e dump_map <device>
I wanted to ask how can i get additional information such as company name, size etc of the HBA? Is it possible to get it through command? Thanks. (3 Replies)
Discussion started by: beginningDBA
3 Replies
4. Solaris
hi ,
Please tell me how can i access windows machine from solaris OS.how can i share one drive or folder in windows for solaris
please give me the step whatever it required
thanks to all (1 Reply)
Discussion started by: sijocg
1 Replies
5. Shell Programming and Scripting
I have the below code to find yesterdays date, In this I want to make MONTH, DAY and YEAR as global variableand use it outside the {}, but I am unable to do so , please assist:
#!/usr/bin/ksh
date '+%m %d %Y' |
{
read MONTH DAY YEAR
DAY=`expr "$DAY" - $1`
case "$DAY" in
0) ... (1 Reply)
Discussion started by: mohsin.quazi
1 Replies
6. Shell Programming and Scripting
HI all,
How can i access a variable that is
defined in another file as: $$Name= "abhinav;
in my script.
The catch is that it has 2 $s behind it...
Thnaks
---------- Post updated at 10:36 AM ---------- Previous update was at 10:29 AM ----------
the file from which i have to... (0 Replies)
Discussion started by: abhinav192
0 Replies
7. Programming
I'm accessing the TSC register, and using usleep() function to calculate my clock frequency. Basically, I check the current clock, delay for 1 second, and then check the clock again to discover how many clock ticks occur in a second.
The only problem is - my result turns out to be a... (1 Reply)
Discussion started by: snowbarr
1 Replies
8. Shell Programming and Scripting
Hello,
I am playing around with sort and I am having some problems
I want to sort times.
sort -n -k2 filename
# key: sex, time, athlete, athlete's nationality, date, city, country
F, 2:15:24.6, Paula Radcliffe, ENG, 2003-04-13, London, UK
F, 2:17:17.7, Paula Radcliffe, ENG, 2002-10-13,... (3 Replies)
Discussion started by: Kryptonite
3 Replies
LEARN ABOUT DEBIAN
sdlx::controller::interface
pods::SDLx::Controller::Interface(3pm) User Contributed Perl Documentation pods::SDLx::Controller::Interface(3pm)
NAME
SDLx::Controller::Interface - Interface Physics and Rendering with the Controller with callbacks
CATEGORY
Extension, Controller
SYNOPSIS
use SDL;
use SDLx::App;
use SDLx::Controller::Interface;
#SDLx::App is a controller
my $app = SDLx::App->new(width => 200, height => 200 );
my $ball = SDLx::Controller::Interface->new( x=> 10, y => 50, v_x => 10, v_y=> 20 );
#Set the initial state of the ball's physics, this is optional
$ball->set_acceleration(
sub {
my ($time, $current_state) = @_;
return( 0, -10, 0 ); # Return accelerations (x,y,rotation)
}
);
my $ball_render = sub {
my $state = shift;
$app->draw_rect( undef, 0 );
$app->draw_rect( [$state->x, $state->y, 10,10], [255,0,0,255] );
$app->update();
};
$ball->attach( $app, $ball_render, @params );
$app->run();
$ball->detach(); #can be called at anytime (for example when ball 'dies')
DESCRIPTION
METHODS
set_acceleration
Allows you to set the acceleration callback for defining the interface's behaviour in terms of x,y and rotation.
$interface->set_acceleration (
sub {
my ($time, $current_state) = @_;
return ( $accel_x, $accel_y, $torque );
}
);
These accelerations are arbitrary and can be set to any frame of reference. Your render callback will handle how to interpret it.
The callback will receive the time and the current state as a "SDLx::Controller::State" element.
attach
Attaches the interface to a controller with a render callback
$interface->attach( $controller, $render, @params );
Where $render is a callback that receives the interpolated "SDLx::Controller::State".
my $render = sub {
my ($state, @params) = @_;
# draw the current $state.
};
The @params are any extra parameters you would like to pass to the $render callback.
current
my $current_state = $interface->current();
Returns the current state of the interface as a "SDLx::Controller::State".
previous
my $previous_state = $interface->previous();
Returns the previous state of the interface as a "SDLx::Controller::State".
detach
$interface->detach();
If $interface has been "attach()"'ed to any controller it will be detached now.
OTHER METHODS
Don't use these unless you really really want to.
acceleration
Call the acceleration callback once.
interpolate
Interpolate the current state
evaluate
Evaluate the new current and previous state.
update
Update the states by integrating with time.
AUTHORS
See "AUTHORS" in SDL.
perl v5.14.2 2012-05-28 pods::SDLx::Controller::Interface(3pm)